1
0
Fork 0
mirror of https://github.com/aasm/aasm synced 2023-03-27 23:22:41 -04:00
Commit graph

10 commits

Author SHA1 Message Date
Jon Distad
3eb2ea20f2 bang event methods now return false and dont transition on failed save 2008-10-03 11:22:51 -04:00
Edgecase Pair One
e517a0b5e4 [Jon] increased the scope of active_record persistence to save the whole model 2008-10-03 10:15:35 -04:00
Scott Barron
3d69497ee3 Take state column for AR persistance out of class variables and add them to the
StateMachine object.
2008-06-22 11:17:12 -04:00
Scott Barron
83bbe4d082 Merge in Jan De Poorter's [DefV] named_scope addition to AR persistence layer, with some organizational clean up. 2008-05-30 14:23:23 -07:00
Scott Barron
9e348d718b Add .find_in_state, .count_in_state, .calculate_in_state back to AR layer 2008-05-29 13:10:31 -07:00
Jeff Dean
277373b41a updated docs 2008-04-29 02:08:51 -04:00
Jeff Dean
a0bb1c404c make sure the 2 fields are in sync by using before_validation_on_create 2008-04-29 01:58:05 -04:00
Jeff Dean
cb6bd4f534 * Specs and bug fixes for the ActiveRecordPersistence, keeping persistence columns in sync
Allowing for nil values in states for active record
  New non-(!) methods that allow for firing events without persisting [Jeff Dean]
2008-04-29 01:27:56 -04:00
Scott Barron
05249c09a3 Fix AR persistence so new records have their state set. [Joao Paulo Lins]
Ensure that a state is written for a new record even if aasm_current_state or
{state}= are never called.
2008-02-27 15:32:52 -05:00
Scott Barron
ebb36e697d Some automatic persistence hooks for ActiveRecord objects 2008-02-22 15:46:31 -05:00