From baceb4b53e296cd45ac3acbd5df291e14b2993aa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Johan=20S=C3=B8rensen?= Date: Fri, 6 Feb 2009 22:49:24 +0800 Subject: [PATCH] Ruby 1.9 compat Signed-off-by: Scott Barron --- lib/event.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/event.rb b/lib/event.rb index 1f3612e..5589bf9 100644 --- a/lib/event.rb +++ b/lib/event.rb @@ -34,11 +34,11 @@ module AASM 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