class Administrate::Field::StateMachine

Public Class Methods

searchable?() click to toggle source
# File lib/administrate/field/state_machine.rb, line 12
def self.searchable?
  true
end

Public Instance Methods

to_s() click to toggle source
# File lib/administrate/field/state_machine.rb, line 16
def to_s
  data.humanize
end
transitions() click to toggle source

First-level transitions that can be triggered from the current state

# File lib/administrate/field/state_machine.rb, line 21
def transitions
  resource.state_paths.map(&:first).uniq
end