Ruby 1.9 compat

Signed-off-by: Scott Barron <scott@elitists.net>
This commit is contained in:
Johan Sørensen 2009-02-06 22:49:24 +08:00 committed by Scott Barron
parent 5aff31982d
commit baceb4b53e
1 changed files with 3 additions and 3 deletions

View File

@ -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