1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

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

correct the classify example's output.
This commit is contained in:
Arun Agrawal 2014-04-20 21:23:52 +02:00
commit 50b849c7e0

View file

@ -155,7 +155,7 @@ module ActiveSupport
#
# 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(/.*\./, '')))