lib/stateflow.rb in stateflow-0.4.0 vs lib/stateflow.rb in stateflow-0.4.1

- old
+ new

@@ -43,10 +43,10 @@ def current_state @current_state ||= load_from_persistence.nil? ? machine.initial_state : machine.states[load_from_persistence.to_sym] end - def set_current_state(new_state, options) + def set_current_state(new_state, options = {}) save_to_persistence(new_state.name.to_s, options) @current_state = new_state end def machine