method

transitions

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

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.

transitions(trans_opts)
private

No documentation available.

# File activemodel/lib/active_model/state_machine/event.rb, line 57
      def transitions(trans_opts)
        Array(trans_opts[:from]).each do |s|
          @transitions << StateTransition.new(trans_opts.merge({:from => s.to_sym}))
        end
      end