diff options
author | Marc-Andre Lafortune <github@marc-andre.ca> | 2012-06-15 15:50:08 -0400 |
---|---|---|
committer | Marc-Andre Lafortune <github@marc-andre.ca> | 2012-06-15 15:50:08 -0400 |
commit | fce1735a6e62ad8216edd6339c37702d198e1c9e (patch) | |
tree | ac22335af1979840f4d565efe1209c89efac8e9e /activesupport/lib/active_support | |
parent | 8b35a239fb2dd9bfeed7f99f10e826a82dfb59da (diff) | |
download | rails-fce1735a6e62ad8216edd6339c37702d198e1c9e.tar.gz rails-fce1735a6e62ad8216edd6339c37702d198e1c9e.tar.bz2 rails-fce1735a6e62ad8216edd6339c37702d198e1c9e.zip |
Fix doc example for dasherize
Diffstat (limited to 'activesupport/lib/active_support')
-rw-r--r-- | activesupport/lib/active_support/core_ext/string/inflections.rb | 2 |
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 |