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:
commit
50b849c7e0
1 changed files with 1 additions and 1 deletions
|
@ -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(/.*\./, '')))
|
||||
|
|
Loading…
Reference in a new issue