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 d59dbbf6b0 Allow duplicate state names in subclasses
When an AASM including class is subclassed, a shallow copy is made of
the StateMachine object.  This means that all subclasses share the same
states hash and thus the same set of states, which prevents (among other
things) different subclasses from using the same state names.

Give StateMachine a smart #clone method that copies the states hash and
invoke that rather than #dup upon subclassing.
2008-11-05 11:06:36 -05:00
..
aasm_spec.rb Allow duplicate state names in subclasses 2008-11-05 11:06:36 -05: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