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