lib/state_transition.rb in runcoderun-aasm-2.0.2.1 vs lib/state_transition.rb in runcoderun-aasm-2.0.2.2
- old
+ new
@@ -19,9 +19,11 @@
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