aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/inflector/methods.rb
diff options
context:
space:
mode:
authorRafael Mendonça França <rafaelmfranca@gmail.com>2014-04-11 09:46:22 -0300
committerRafael Mendonça França <rafaelmfranca@gmail.com>2014-04-11 09:46:22 -0300
commitd0b5484b5d039a1d08f79652011d40c7a829d6ef (patch)
tree84d9c0224d0e8e2fbcf87e34dc7097679c32a196 /activesupport/lib/active_support/inflector/methods.rb
parent142448259d7f450df49fdac06bf912edfecaa633 (diff)
parent075a1e21fa59433976dd6860b775a280db10f606 (diff)
downloadrails-d0b5484b5d039a1d08f79652011d40c7a829d6ef.tar.gz
rails-d0b5484b5d039a1d08f79652011d40c7a829d6ef.tar.bz2
rails-d0b5484b5d039a1d08f79652011d40c7a829d6ef.zip
Merge pull request #14705 from akshay-vishnoi/doc_changes
Add more test case for #demodulize, Improve documentation
Diffstat (limited to 'activesupport/lib/active_support/inflector/methods.rb')
-rw-r--r--activesupport/lib/active_support/inflector/methods.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/activesupport/lib/active_support/inflector/methods.rb b/activesupport/lib/active_support/inflector/methods.rb
index a270c4452f..6229d15619 100644
--- a/activesupport/lib/active_support/inflector/methods.rb
+++ b/activesupport/lib/active_support/inflector/methods.rb
@@ -172,6 +172,8 @@ module ActiveSupport
#
# 'ActiveRecord::CoreExtensions::String::Inflections'.demodulize # => "Inflections"
# 'Inflections'.demodulize # => "Inflections"
+ # '::Inflections'.demodulize # => "Inflections"
+ # ''.demodulize # => ''
#
# See also +deconstantize+.
def demodulize(path)