lib/state_machinable/base.rb in state_machinable-0.0.5 vs lib/state_machinable/base.rb in state_machinable-0.0.6

- old
+ new

@@ -31,10 +31,10 @@ end end def method_missing(name, *args, &block) begin - events = "#{self.class}::EVENTS".constantize + events = "#{self.class}::EVENTS".constantize.dup rescue NameError events = [] end events.concat([:ev_before_save, :ev_after_save]).uniq