Skip to content

Commit

Permalink
Ruby 1.9 compat
Browse files Browse the repository at this point in the history
Signed-off-by: Scott Barron <scott@elitists.net>
  • Loading branch information
js authored and Scott Barron committed Feb 6, 2009
1 parent 5aff319 commit baceb4b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/event.rb
Expand Up @@ -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
Expand Down

0 comments on commit baceb4b

Please sign in to comment.