Skip to content

Commit

Permalink
Merge pull request #14823 from kuldeepaggarwal/fix-inflector-example
Browse files Browse the repository at this point in the history
correct the classify example's output.
  • Loading branch information
arunagw committed Apr 20, 2014
2 parents 86b0282 + 21dbe6f commit 50b849c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion activesupport/lib/active_support/inflector/methods.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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(/.*\./, '')))
Expand Down

0 comments on commit 50b849c

Please sign in to comment.