method

call_action

rails latest stable - Class: ActiveModel::StateMachine::State

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v2.3.8) is shown here.

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