aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/inflector
diff options
context:
space:
mode:
authorAkira Matsuda <ronnie@dio.jp>2016-12-17 17:13:50 +0900
committerAkira Matsuda <ronnie@dio.jp>2016-12-24 11:39:05 +0900
commita43e7706be907e62fad4ffe5f80ab9532c51dbca (patch)
treef0854bd80e7ab3bc06a55e55929ef50a8330df8a /activesupport/lib/active_support/inflector
parent4db99eb87b98f3810e782fd745b0474467f9ce66 (diff)
downloadrails-a43e7706be907e62fad4ffe5f80ab9532c51dbca.tar.gz
rails-a43e7706be907e62fad4ffe5f80ab9532c51dbca.tar.bz2
rails-a43e7706be907e62fad4ffe5f80ab9532c51dbca.zip
Privatize unneededly protected methods in Active Support
Diffstat (limited to 'activesupport/lib/active_support/inflector')
-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 fa063af3f4..8fea96a82a 100644
--- a/activesupport/lib/active_support/inflector/methods.rb
+++ b/activesupport/lib/active_support/inflector/methods.rb
@@ -361,7 +361,7 @@ module ActiveSupport
#
# const_regexp("Foo::Bar::Baz") # => "Foo(::Bar(::Baz)?)?"
# const_regexp("::") # => "::"
- def const_regexp(camel_cased_word) #:nodoc:
+ def const_regexp(camel_cased_word)
parts = camel_cased_word.split("::".freeze)
return Regexp.escape(camel_cased_word) if parts.blank?