Class: Administrate::Field::StateMachine
- Inherits:
-
Base
- Object
- Base
- Administrate::Field::StateMachine
- Defined in:
- lib/administrate/field/state_machine.rb
Class Method Summary collapse
Instance Method Summary collapse
- #to_s ⇒ Object
-
#transitions ⇒ Object
First-level transitions that can be triggered from the current state.
Class Method Details
.searchable? ⇒ Boolean
10 11 12 |
# File 'lib/administrate/field/state_machine.rb', line 10 def self.searchable? true end |
Instance Method Details
#to_s ⇒ Object
14 15 16 |
# File 'lib/administrate/field/state_machine.rb', line 14 def to_s data.humanize end |
#transitions ⇒ Object
First-level transitions that can be triggered from the current state
19 20 21 |
# File 'lib/administrate/field/state_machine.rb', line 19 def transitions resource.state_paths.map(&:first).uniq end |