1
0
Fork 0
mirror of https://github.com/aasm/aasm synced 2023-03-27 23:22:41 -04:00

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

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