lib/state_transition.rb in runcoderun-aasm-2.0.2.2 vs lib/state_transition.rb in runcoderun-aasm-2.0.2.3
- old
+ new
@@ -19,11 +19,9 @@
end
end
def execute(obj, *args)
case @on_transition
- when Array
- @on_transition.each { |t| obj.send(t, *args) }
when Symbol, String
obj.send(@on_transition, *args)
when Proc
@on_transition.call(obj, *args)
end