mirror of https://github.com/rails/rails
Merge pull request #5713 from bolshakov/master
Fix typo in "dasherize" description
This commit is contained in:
commit
0cc6c5fec2
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue