Software Development |
Ruby on Rails
acts_as_state_machine plugin
altered_beast user acts_as_state_machine
GitHub: omghax / acts_as_state_machine is one of the plugins used in altered_beast. The affected Active Record model will act as a finite state machine (FSM).
altered_beast uses it for authentication. The code is in models/user/states.rb. The state values for user are:
- passive (start state)
- pending
- active
- suspended
- deleted
The state machine diagram shows the transitions between the states including Register, Activate, Suspend, Unsuspend and Delete.
