Claudio B.
2014-Oct-07 16:24 UTC
Shouldn't before_perform stop the execution of an ActiveJob when returning false?
Hello! I have started using ActiveJob and I noticed the presence of callbacks like before_perform. I was expecting these callbacks to behave like ActiveRecord ones: if a before_* callback returns false, all the later callbacks and the associated action are cancelled. That is not the case with ActiveJob, so my question is: should this be changed? And if not… does it mean that writing code inside before_perform is exactly the same than writing code at the beginning of the perform method? Thanks! -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-core+unsubscribe@googlegroups.com. To post to this group, send email to rubyonrails-core@googlegroups.com. Visit this group at http://groups.google.com/group/rubyonrails-core. For more options, visit https://groups.google.com/d/optout.