aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/inflector/methods.rb
diff options
context:
space:
mode:
authorArtyom Bolshakov <artyom@rentini.com>2012-04-03 14:20:32 +0400
committerArtyom Bolshakov <artyom@rentini.com>2012-04-03 14:20:32 +0400
commit5f62e88b3ba14675b76009e112b25ee7a3105cb5 (patch)
tree19e110533a9d18c0a08b3517ff7394ce583a62fa /activesupport/lib/active_support/inflector/methods.rb
parentfff3e75e1cf777f4b444d08c153065ab4264fa2e (diff)
downloadrails-5f62e88b3ba14675b76009e112b25ee7a3105cb5.tar.gz
rails-5f62e88b3ba14675b76009e112b25ee7a3105cb5.tar.bz2
rails-5f62e88b3ba14675b76009e112b25ee7a3105cb5.zip
Fix typo
Diffstat (limited to 'activesupport/lib/active_support/inflector/methods.rb')
-rw-r--r--activesupport/lib/active_support/inflector/methods.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activesupport/lib/active_support/inflector/methods.rb b/activesupport/lib/active_support/inflector/methods.rb
index 4cebad742f..19a6c51516 100644
--- a/activesupport/lib/active_support/inflector/methods.rb
+++ b/activesupport/lib/active_support/inflector/methods.rb
@@ -146,7 +146,7 @@ module ActiveSupport
# Replaces underscores with dashes in the string.
#
# Example:
- # "puni_puni" # => "puni-puni"
+ # "puni_puni".dasherize # => "puni-puni"
def dasherize(underscored_word)
underscored_word.tr('_', '-')
end