method
call_action
v2.2.1 -
Show latest stable
- Class:
ActiveModel::StateMachine::State
call_action(action, record)public
No documentation available.
# File activemodel/lib/active_model/state_machine/state.rb, line 25
def call_action(action, record)
action = @options[action]
case action
when Symbol, String
record.send(action)
when Proc
action.call(record)
end
end