aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRafael Mendonça França <rafaelmfranca@gmail.com>2012-06-15 12:52:05 -0700
committerRafael Mendonça França <rafaelmfranca@gmail.com>2012-06-15 12:52:05 -0700
commitd28ba0def829f6fb9ecf824c036391058cbb9e66 (patch)
treeac22335af1979840f4d565efe1209c89efac8e9e
parent8b35a239fb2dd9bfeed7f99f10e826a82dfb59da (diff)
parentfce1735a6e62ad8216edd6339c37702d198e1c9e (diff)
downloadrails-d28ba0def829f6fb9ecf824c036391058cbb9e66.tar.gz
rails-d28ba0def829f6fb9ecf824c036391058cbb9e66.tar.bz2
rails-d28ba0def829f6fb9ecf824c036391058cbb9e66.zip
Merge pull request #6748 from marcandre/dasherize_doc
Fix doc example for dasherize
-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