Flowdock
method

call_action

Importance_0
v2.3.8 - Show latest stable - 0 notes - Class: ActiveModel::StateMachine::State
call_action(action, record) public

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# 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
Register or log in to add new notes.