diff options
author | Akira Matsuda <ronnie@dio.jp> | 2017-01-04 21:39:34 +0900 |
---|---|---|
committer | Akira Matsuda <ronnie@dio.jp> | 2017-01-05 01:37:36 +0900 |
commit | 24bacb3e956e36414847cb250bbd6c6d9c6cadd7 (patch) | |
tree | 2dccab6df5e55ffc02a613994999b3ce39d05206 | |
parent | c1d1c4bca75f455473a3ac70764ab22bbd8bf1aa (diff) | |
download | rails-24bacb3e956e36414847cb250bbd6c6d9c6cadd7.tar.gz rails-24bacb3e956e36414847cb250bbd6c6d9c6cadd7.tar.bz2 rails-24bacb3e956e36414847cb250bbd6c6d9c6cadd7.zip |
There's no such module
-rw-r--r-- | activesupport/lib/active_support/core_ext/string/inflections.rb | 8 | ||||
-rw-r--r-- | activesupport/lib/active_support/inflector/methods.rb | 8 |
2 files changed, 8 insertions, 8 deletions
diff --git a/activesupport/lib/active_support/core_ext/string/inflections.rb b/activesupport/lib/active_support/core_ext/string/inflections.rb index 4eabce79e2..7a2fc5c1b5 100644 --- a/activesupport/lib/active_support/core_ext/string/inflections.rb +++ b/activesupport/lib/active_support/core_ext/string/inflections.rb @@ -128,10 +128,10 @@ class String # Removes the module part from the constant expression in the string. # - # 'ActiveRecord::CoreExtensions::String::Inflections'.demodulize # => "Inflections" - # 'Inflections'.demodulize # => "Inflections" - # '::Inflections'.demodulize # => "Inflections" - # ''.demodulize # => '' + # 'ActiveSupport::Inflector::Inflections'.demodulize # => "Inflections" + # 'Inflections'.demodulize # => "Inflections" + # '::Inflections'.demodulize # => "Inflections" + # ''.demodulize # => '' # # See also +deconstantize+. def demodulize diff --git a/activesupport/lib/active_support/inflector/methods.rb b/activesupport/lib/active_support/inflector/methods.rb index 8fea96a82a..8ccb735c6d 100644 --- a/activesupport/lib/active_support/inflector/methods.rb +++ b/activesupport/lib/active_support/inflector/methods.rb @@ -198,10 +198,10 @@ module ActiveSupport # Removes the module part from the expression in the string. # - # demodulize('ActiveRecord::CoreExtensions::String::Inflections') # => "Inflections" - # demodulize('Inflections') # => "Inflections" - # demodulize('::Inflections') # => "Inflections" - # demodulize('') # => "" + # demodulize('ActiveSupport::Inflector::Inflections') # => "Inflections" + # demodulize('Inflections') # => "Inflections" + # demodulize('::Inflections') # => "Inflections" + # demodulize('') # => "" # # See also #deconstantize. def demodulize(path) |