Module: SimpleStateMachine::ActiveRecord
- Includes:
- Extendable, Inheritable, Mountable
- Defined in:
- lib/simple_state_machine/active_record.rb
Instance Method Summary collapse
Methods included from Inheritable
Methods included from Extendable
Methods included from Mountable
#mount_state_machine, #state_machine_definition=
Instance Method Details
#state_machine_definition ⇒ Object
7 8 9 10 11 12 13 14 |
# File 'lib/simple_state_machine/active_record.rb', line 7 def state_machine_definition unless @state_machine_definition @state_machine_definition = SimpleStateMachine::StateMachineDefinition.new @state_machine_definition.decorator_class = SimpleStateMachine::Decorator::ActiveRecord @state_machine_definition.subject = self end @state_machine_definition end |