From 13f9803215ef9f892950dce556b45c50f56d71d6 Mon Sep 17 00:00:00 2001 From: Akira Matsuda Date: Sun, 8 Sep 2019 09:47:54 +0900 Subject: [PATCH] rubocop --- activemodel/lib/active_model/attribute_methods.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/activemodel/lib/active_model/attribute_methods.rb b/activemodel/lib/active_model/attribute_methods.rb index ee7833ea34..4a636bc014 100644 --- a/activemodel/lib/active_model/attribute_methods.rb +++ b/activemodel/lib/active_model/attribute_methods.rb @@ -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