mirror of
https://github.com/aasm/aasm
synced 2023-03-27 23:22:41 -04:00
Revert a6152fe3f3
This commit is contained in:
parent
119775f0b1
commit
6a5fc30931
1 changed files with 1 additions and 1 deletions
|
@ -69,7 +69,7 @@ module AASM::Core
|
|||
|
||||
case code
|
||||
when Symbol, String
|
||||
result = (record.__send__(:method, code.to_sym).arity != 0 ? record.__send__(code, *args) : record.__send__(code))
|
||||
result = (record.__send__(:method, code.to_sym).arity == 0 ? record.__send__(code) : record.__send__(code, *args))
|
||||
failures << code unless result
|
||||
result
|
||||
when Proc
|
||||
|
|
Loading…
Add table
Reference in a new issue