aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/inflector/methods.rb
diff options
context:
space:
mode:
authorRyuta Kamizono <kamipo@gmail.com>2019-07-31 17:42:27 +0900
committerRyuta Kamizono <kamipo@gmail.com>2019-07-31 17:48:14 +0900
commit4c8c8c87b07844b26564ca6aa2052660e601bc3d (patch)
treec6e1863a91618c017de9c5fd92a8240b177256e7 /activesupport/lib/active_support/inflector/methods.rb
parent511d1abc8ad523aa3592e30b4ecf4dac92a2a352 (diff)
downloadrails-4c8c8c87b07844b26564ca6aa2052660e601bc3d.tar.gz
rails-4c8c8c87b07844b26564ca6aa2052660e601bc3d.tar.bz2
rails-4c8c8c87b07844b26564ca6aa2052660e601bc3d.zip
Address to rubocop offences
Diffstat (limited to 'activesupport/lib/active_support/inflector/methods.rb')
-rw-r--r--activesupport/lib/active_support/inflector/methods.rb2
1 files changed, 1 insertions, 1 deletions
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("::")