instance method transitions_from_state?

Ruby on Rails 2.2.3

Last seen in v2.3.18

Available in: v2.2.3 v2.3.18

Signature

transitions_from_state?(state)

No documentation comment.

Parameters

state req
Source
# File activemodel/lib/active_model/state_machine/event.rb, line 36
      def transitions_from_state?(state)
        @transitions.any? { |t| t.from? state }
      end

Defined in activemodel/lib/active_model/state_machine/event.rb line 36 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActiveModel::StateMachine::Event

Type at least 2 characters to search.

Use the arrow keys to navigate results, Enter to open one, Escape to close.

Keyboard shortcuts

/
Focus search
⌘K / Ctrl-K
Command palette
?
This help
Esc
Close