1
0
Fork 0
mirror of https://github.com/aasm/aasm synced 2023-03-27 23:22:41 -04:00
aasm/spec/unit
Tim Pope fee9487e0d Invoke original inherited callback when subclassed
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.
2008-10-09 19:03:00 -04:00
..
aasm_spec.rb Invoke original inherited callback when subclassed 2008-10-09 19:03:00 -04:00
active_record_persistence_spec.rb Take state column for AR persistance out of class variables and add them to the 2008-06-22 11:17:12 -04:00
event_spec.rb Added support for lambdas and arrays of method symbols to success callback 2008-10-09 10:53:39 -04:00
state_spec.rb Modify State to prep for enter/entering/exit actions 2008-05-31 14:33:07 -07:00
state_transition_spec.rb Reorg spec dir to have units and functionals 2008-02-21 12:18:08 -05:00