method

execute

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

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.

execute(obj, *args)
public

No documentation available.

# File activemodel/lib/active_model/state_machine/state_transition.rb, line 22
      def execute(obj, *args)
        case @on_transition
        when Symbol, String
          obj.send(@on_transition, *args)
        when Proc
          @on_transition.call(obj, *args)
        end
      end