class ValidStateName include AASM aasm do state :invalid, :initial => true state :valid event :valid do transitions :to => :valid, :from => [:invalid] end end end class ValidStateNameMultiple include AASM aasm(:left) do state :invalid, :initial => true state :valid event :valid do transitions :to => :valid, :from => [:invalid] end end end