Software Development |
Ruby on Rails
altered_beast user acts_as_state_machine
altered_beast uses it for authentication. The code is in models/user/states.rb. The state values for user are:
- passive (start state)
The state machine diagram shows the transitions between the states including Register, Activate, Suspend, Unsuspend and Delete.