lib/aasm/aasm.rb in aasm-3.0.12 vs lib/aasm/aasm.rb in aasm-3.0.13

- old
+ new

@@ -5,11 +5,11 @@ unless AASM::StateMachine[base] AASM::StateMachine[base] = AASM::StateMachine.new('') end AASM::Persistence.set_persistence(base) - super + super end module ClassMethods def inherited(klass) AASM::StateMachine[klass] = AASM::StateMachine[self].clone @@ -70,10 +70,10 @@ end def aasm_human_event_name(event) AASM::SupportingClasses::Localizer.new.human_event_name(self, event) end - end + end # ClassMethods # this method does what? does it deliver the current state? def aasm_current_state @aasm_current_state ||= aasm_persistable? ? aasm_read_state : aasm_enter_initial_state