Permalink
Browse files

Merge pull request #5713 from bolshakov/master

Fix typo in "dasherize" description
  • Loading branch information...
2 parents a3dc8ba + 5f62e88 commit 0cc6c5fec235cca6d7eb85d4f849536db8566e93 @fxn fxn committed Apr 3, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 activesupport/lib/active_support/inflector/methods.rb
@@ -146,7 +146,7 @@ def classify(table_name)
# 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

0 comments on commit 0cc6c5f

Please sign in to comment.