You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
According to the readme and rdocs, in the below callback, self is the record, and transition is the argument for the do block. But when I run the code, self appears to be the transition, while the argument for the do block is the record. Has something changed and the documentation failed to keep up?
after_transition any => :processing do |transition|
self.process_image
end
The text was updated successfully, but these errors were encountered:
The behavior of the callbacks depends on the integration you're using. Some bind self, some pass in both the object and the transition as arguments to the block.
I'll be making some updates to support self for ActiveRecord 3.1+, but in general the behavior of self matches the behavior in the callbacks for the ORM you're using. Stay tuned :)
According to the readme and rdocs, in the below callback, self is the record, and transition is the argument for the do block. But when I run the code, self appears to be the transition, while the argument for the do block is the record. Has something changed and the documentation failed to keep up?
The text was updated successfully, but these errors were encountered: