Permalink
Browse files

Fix typo

  • Loading branch information...
1 parent fff3e75 commit 5f62e88b3ba14675b76009e112b25ee7a3105cb5 @bolshakov bolshakov 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 5f62e88

Please sign in to comment.