Method: AASM::InstanceBase#determine_state_name
- Defined in:
- lib/aasm/instance_base.rb
#determine_state_name(state) ⇒ Object
97 98 99 100 101 102 103 104 105 106 |
# File 'lib/aasm/instance_base.rb', line 97 def determine_state_name(state) case state when Symbol, String state when Proc state.call(@instance) else raise NotImplementedError, "Unrecognized state-type given. Expected Symbol, String, or Proc." end end |