aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/core_ext/string
diff options
context:
space:
mode:
authorMarc-Andre Lafortune <github@marc-andre.ca>2012-06-15 15:50:08 -0400
committerMarc-Andre Lafortune <github@marc-andre.ca>2012-06-15 15:50:08 -0400
commitfce1735a6e62ad8216edd6339c37702d198e1c9e (patch)
treeac22335af1979840f4d565efe1209c89efac8e9e /activesupport/lib/active_support/core_ext/string
parent8b35a239fb2dd9bfeed7f99f10e826a82dfb59da (diff)
downloadrails-fce1735a6e62ad8216edd6339c37702d198e1c9e.tar.gz
rails-fce1735a6e62ad8216edd6339c37702d198e1c9e.tar.bz2
rails-fce1735a6e62ad8216edd6339c37702d198e1c9e.zip
Fix doc example for dasherize
Diffstat (limited to 'activesupport/lib/active_support/core_ext/string')
-rw-r--r--activesupport/lib/active_support/core_ext/string/inflections.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activesupport/lib/active_support/core_ext/string/inflections.rb b/activesupport/lib/active_support/core_ext/string/inflections.rb
index 070bfd7af6..efa2d43f20 100644
--- a/activesupport/lib/active_support/core_ext/string/inflections.rb
+++ b/activesupport/lib/active_support/core_ext/string/inflections.rb
@@ -107,7 +107,7 @@ class String
# Replaces underscores with dashes in the string.
#
- # 'puni_puni' # => "puni-puni"
+ # 'puni_puni'.dasherize # => "puni-puni"
def dasherize
ActiveSupport::Inflector.dasherize(self)
end