提交 50b849c7 编写于 作者: A Arun Agrawal

Merge pull request #14823 from kuldeepaggarwal/fix-inflector-example

correct the classify example's output.
......@@ -155,7 +155,7 @@ def tableize(class_name)
#
# Singular names are not handled correctly:
#
# 'business'.classify # => "Busines"
# 'business'.classify # => "Business"
def classify(table_name)
# strip out any leading schema name
camelize(singularize(table_name.to_s.sub(/.*\./, '')))
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册