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:
parent
5aff31982d
commit
baceb4b53e
1 changed files with 3 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue