提交 0cc6c5fe 编写于 作者: X Xavier Noria

Merge pull request #5713 from bolshakov/master

Fix typo in "dasherize" description
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册