1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
This commit is contained in:
Akira Matsuda 2019-09-08 09:47:54 +09:00
parent af99f45b58
commit 13f9803215

View file

@ -360,7 +360,7 @@ module ActiveModel
# using the given `extra` args. This falls back on `define_method`
# and `send` if the given names cannot be compiled.
def define_proxy_call(include_private, mod, name, target, *extra)
kw = RUBY_VERSION >= '2.7' ? ", **options" : nil
kw = RUBY_VERSION >= "2.7" ? ", **options" : nil
defn = if NAME_COMPILABLE_REGEXP.match?(name)
"def #{name}(*args#{kw})"
else