mirror of
https://github.com/aasm/aasm
synced 2023-03-27 23:22:41 -04:00
fee9487e0d
When AASM is included into a class, it defines inherited, clobbering the original definition. This problem becomes readily apparent with STI in Rails, where the original method is part of the implementation of inheritable attributes, a feature relied on for several ActiveRecord features such as callbacks and timestamp recording. Move the implementation of inherited to ClassMethods and invoke the original method via super. |
||
---|---|---|
.. | ||
aasm_spec.rb | ||
active_record_persistence_spec.rb | ||
event_spec.rb | ||
state_spec.rb | ||
state_transition_spec.rb |