I'm going to put this on hold until 2.2 is out. Then I'll start working with the AR tests.
On Sep 13, 3:40 pm, "S. Brent Faulkner" <[EMAIL PROTECTED]> wrote: > Hey all > > > Didn't we talk about tweaking some of the state machine event guarding > > and state transitioning stuff to use more validations and callbacks > > too? Being able to add validations to anything would be interesting. > > I recently experimented with state machines that use callbacks/ > observers. I also detect transitions that occur through direct state > manipulation (as opposed to invoking an event! method... e.g. > update_attributes(:state => 'closed')) and fire the appropriate enter/ > exit callbacks. > > Source is athttp://github.com/sbfaulkner/has_states > > It's working nicely for me in my current project. > > (FYI... had I noticed ActiveModel rather than the other plugins that > are out there I'd have tried this there instead). > > Cheers. > > --Brent --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en -~----------~----~----~----~------~----~------~--~---
