1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
This commit is contained in:
Artyom Bolshakov 2012-04-03 14:20:32 +04:00
parent fff3e75e1c
commit 5f62e88b3b

View file

@ -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