Since state transitions are similar to “regular” AR callbacks, maybe your method should run in the after_create callback? In the end, your transition from zero to discover what happens when you create:
after_create :send_trade_notification_email
What if it were allowed to do the same thing:
after_transition :on=>:create, :do=>:send_trade_notification_email
source
share