lib/stateflow.rb in stateflow-0.2.1 vs lib/stateflow.rb in stateflow-0.2.2

- old
+ new

@@ -33,9 +33,11 @@ end end end module InstanceMethods + attr_accessor :_previous_state + def current_state @current_state ||= load_from_persistence.nil? ? machine.initial_state : machine.states[load_from_persistence.to_sym] end def current_state=(new_state)