lib/active_support/inflector/methods.rb in activesupport-5.0.0.beta1.1 vs lib/active_support/inflector/methods.rb in activesupport-5.0.0.beta2
- old
+ new
@@ -171,10 +171,10 @@
# classify('ham_and_eggs') # => "HamAndEgg"
# classify('posts') # => "Post"
#
# Singular names are not handled correctly:
#
- # classify('calculus') # => "Calculu"
+ # classify('calculus') # => "Calculus"
def classify(table_name)
# strip out any leading schema name
camelize(singularize(table_name.to_s.sub(/.*\./, ''.freeze)))
end