pluginaweek/state_machine — Issue #141: Transition callbacks only called when defined within an Observer
Author: fractious
Created: 2011-11-16 15:09:26+00:00
State: open

[The docs](http://rubydoc.info/github/pluginaweek/state_machine/master/StateMachine/Integrations/ActiveRecord) only gives examples of specifying callbacks within an `ActiveRecord::Observer`. It would be most helpful if transition callbacks could also be defined on an `ActiveRecord::Base` class too as this would mirror the functionality available in rails. Is this by-design, a technical limitation or just something that hasn't been implemented?

Thanks.