public
Description: Generates common user authentication code for Rails/Merb, with a full test/unit and rspec suite and optional Acts as State Machine support built-in.
Home | Edit | New

Switching from --stateful to --aasm

Switching from acts_as_state_machine to AASM

All the code generated for —stateful is also the same code generated for AASM, with the exception of your user model’s decision of which state machine to include. So at the top of user.rb (or whatever your user model is), change this:

   include Authorization::StatefulRoles

to this:


include Authorization::AasmRoles

Make sure you install aasm and follow other setup recommendations, as described elsewhere in this wiki. And, if you didn’t generate with —stateful before, then you’ll need more extensive adjustments than this.

Last edited by rjharmon, Mon Mar 02 22:22:48 -0800 2009
Home | Edit | New
Versions: