lib/active_support/inflector/methods.rb in activesupport-6.0.2.2 vs lib/active_support/inflector/methods.rb in activesupport-6.0.3.rc1

- old
+ new

@@ -194,11 +194,11 @@ # classify('ham_and_eggs') # => "HamAndEgg" # classify('posts') # => "Post" # # Singular names are not handled correctly: # - # classify('calculus') # => "Calculus" + # classify('calculus') # => "Calculu" def classify(table_name) # strip out any leading schema name camelize(singularize(table_name.to_s.sub(/.*\./, ""))) end @@ -357,10 +357,9 @@ def ordinalize(number) I18n.translate("number.nth.ordinalized", number: number) end private - # Mounts a regular expression, returned as a string to ease interpolation, # that will match part by part the given constant. # # const_regexp("Foo::Bar::Baz") # => "Foo(::Bar(::Baz)?)?" # const_regexp("::") # => "::"