mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Fix typo
This commit is contained in:
parent
fff3e75e1c
commit
5f62e88b3b
1 changed files with 1 additions and 1 deletions
|
@ -146,7 +146,7 @@ module ActiveSupport
|
||||||
# Replaces underscores with dashes in the string.
|
# Replaces underscores with dashes in the string.
|
||||||
#
|
#
|
||||||
# Example:
|
# Example:
|
||||||
# "puni_puni" # => "puni-puni"
|
# "puni_puni".dasherize # => "puni-puni"
|
||||||
def dasherize(underscored_word)
|
def dasherize(underscored_word)
|
||||||
underscored_word.tr('_', '-')
|
underscored_word.tr('_', '-')
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue