method
state
v2.3.8 -
Show latest stable
- Class:
ActiveModel::StateMachine::Machine
state(name, options = {})private
No documentation available.
# File activemodel/lib/active_model/state_machine/machine.rb, line 61
def state(name, options = {})
@states << (state_index[name] ||= State.new(name, :machine => self)).update(options)
end