From 4c8c8c87b07844b26564ca6aa2052660e601bc3d Mon Sep 17 00:00:00 2001 From: Ryuta Kamizono Date: Wed, 31 Jul 2019 17:42:27 +0900 Subject: Address to rubocop offences --- activesupport/lib/active_support/inflector/methods.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'activesupport/lib/active_support') diff --git a/activesupport/lib/active_support/inflector/methods.rb b/activesupport/lib/active_support/inflector/methods.rb index 2c0323396f..94d1115ccf 100644 --- a/activesupport/lib/active_support/inflector/methods.rb +++ b/activesupport/lib/active_support/inflector/methods.rb @@ -269,7 +269,7 @@ module ActiveSupport # NameError is raised when the name is not in CamelCase or the constant is # unknown. def constantize(camel_cased_word) - if camel_cased_word.blank? || !camel_cased_word.include?('::') + if camel_cased_word.blank? || !camel_cased_word.include?("::") Object.const_get(camel_cased_word) else names = camel_cased_word.split("::") -- cgit v1.2.3