lib/simple_states.rb in simple_states-0.1.0.pre3 vs lib/simple_states.rb in simple_states-0.1.1

- old
+ new

@@ -40,10 +40,10 @@ def add_states(*states) self.state_names = (self.state_names || []).concat(states.compact.map(&:to_sym)).uniq end def event(name, options = {}) - add_states(*options[:from], options[:to]) + add_states(options[:to], *options[:from]) self.events += [Event.new(name, options)] end end attr_reader :past_states