I recently installed the technoweenie / restful-authentication plugin (which works as promised), but while going through users_controller#created, I found a reference to a method call on the user model
@user.register!
Does anyone know where the method is defined? I’ve pretty much search all of the generated code, and still don’t see a register method.
It’s defined in restful-authentication/lib/authorization/stateful_roles.rb
The actual method
register!is created dynamically from this event by the acts_as_state_machine plugin that should be in your project as well. This method was inserted into your controller because when you generated your controller you specified either--statefulor ‘–aasm’.There is a very good write up on acts_as_state_machine here if you would like to learn more.