We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Happens something like this:
StateMachine::Callback.bind_to_object = true class Vehicle < ActiveRecord::Base state_machine :initial => :parked do event :ignite do transition :parked => :idling end end end Vehicle.new.ignite! # NoMethodError: # undefined method `notify' for #<Vehicle:0x007fc447433768>
Looks like callbacks are mistakenly being called on Vehicle object rather than StateMachine::Machine.
Vehicle
StateMachine::Machine
The text was updated successfully, but these errors were encountered:
👍
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
Happens something like this:
Looks like callbacks are mistakenly being called on
Vehicle
object rather thanStateMachine::Machine
.The text was updated successfully, but these errors were encountered: