Module: MongoMapper::StateMachine
- Extended by:
- ActiveSupport::Concern
- Included in:
- ChainTemplate
- Defined in:
- lib/question_chain/state_machine.rb
Instance Method Summary collapse
Instance Method Details
#model_state ⇒ Object
12 13 14 |
# File 'lib/question_chain/state_machine.rb', line 12 def model_state read_attribute(:model_state) || self.class.state_machine.initial_state.to_s end |