lib/active_support/inflector/methods.rb in activesupport-4.1.1 vs lib/active_support/inflector/methods.rb in activesupport-4.1.2.rc1
- old
+ new
@@ -152,10 +152,10 @@
# 'egg_and_hams'.classify # => "EggAndHam"
# 'posts'.classify # => "Post"
#
# Singular names are not handled correctly:
#
- # 'business'.classify # => "Busines"
+ # 'calculus'.classify # => "Calculu"
def classify(table_name)
# strip out any leading schema name
camelize(singularize(table_name.to_s.sub(/.*\./, '')))
end