Skip to content
Browse files

Ruby 1.9 compat

Signed-off-by: Scott Barron <scott@elitists.net>
  • Loading branch information...
1 parent 5aff319 commit baceb4b53e296cd45ac3acbd5df291e14b2993aa @js js committed with Scott Barron Feb 6, 2009
Showing with 3 additions and 3 deletions.
  1. +3 −3 lib/event.rb
View
6 lib/event.rb
@@ -34,11 +34,11 @@ def transitions_from_state?(state)
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

0 comments on commit baceb4b

Please sign in to comment.
Something went wrong with that request. Please try again.