As I read from `StateMachine::MacroMethods` documentation:
> Because of the way the inclusion of modules works in Ruby, calling super() will not only call the superclass's initialize, but also initialize on all included modules. This allows the original state machine hook to get called properly.
Using `initialize_state_machines` instead of `super` in my model's initialize method solved the problem (since my model also had included modules).
On Thursday, November 22, 2012 5:06:23 PM UTC+5:30, Gurpartap Singh wrote: