1
0
Fork 0
mirror of https://github.com/aasm/aasm synced 2023-03-27 23:22:41 -04:00
aasm/spec
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
..
functional Take state column for AR persistance out of class variables and add them to the 2008-06-22 11:17:12 -04:00
unit Invoke original inherited callback when subclassed 2008-10-09 19:03:00 -04:00
spec_helper.rb Further set up for functional tests 2008-02-21 12:32:04 -05:00