lib/simple_states.rb in simple_states-1.1.0.pre vs lib/simple_states.rb in simple_states-1.1.0.rc1

- old
+ new

@@ -47,10 +47,10 @@ self.state_names = self.state_names.concat(names.compact.map(&:to_sym)).uniq end def event(name, options = {}) add_states(options[:to], *options[:from]) - self.events += [Event.new(name, options)] + self.events << [name, options] end def states_module const_defined?(*args) ? self::StatesProxy : const_set(:StatesProxy, Module.new) end