lib/aasm/aasm.rb
# make sure inheritance (aka subclassing) works with AASM
make sure inheritance (aka subclassing) works with AASM
make sure inheritance ( aka subclassing ) works with AASM
def aasm_from_states_for_state(state, options={})
      if options[:transition]
        aasm.events[options[:transition]].transitions_to_state(state).flatten.map(&:from).flatten
      else
        aasm.events.map {|k,v| v.transitions_to_state(state)}.flatten.map(&:from).flatten
      end
    end
def aasm_from_states_for_state ( state , options = { } ) if options [ :transition ] aasm . events [ options [ :transition ] ] . transitions_to_state ( state ) . flatten . map ( & :from ) . flatten else aasm . events . map { | k , v | v . transitions_to_state ( state ) } . flatten . map ( & :from ) . flatten end end
make sure inheritance (aka subclassing) works with AASM
make sure inheritance ( aka subclassing ) works with AASM
state
options