mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
rubocop
This commit is contained in:
parent
af99f45b58
commit
13f9803215
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue