lib/event.rb in runcoderun-aasm-2.0.5 vs lib/event.rb in runcoderun-aasm-2.0.5.1

- old
+ new

@@ -32,14 +32,14 @@ @transitions.any? { |t| t.from == state } end def execute_success_callback(obj) case success - when String, Symbol: + when String, Symbol obj.send(success) - when Array: + when Array success.each { |meth| obj.send(meth) } - when Proc: + when Proc success.call(obj) end end private