lib/sequel/model/default_inflections.rb in sequel-3.8.0 vs lib/sequel/model/default_inflections.rb in sequel-3.9.0
- old
+ new
@@ -1,8 +1,8 @@
module Sequel
# Proc that is instance evaled to create the default inflections for both the
# model inflector and the inflector extension.
- DEFAULT_INFLECTIONS_PROC = lambda do
+ DEFAULT_INFLECTIONS_PROC = proc do
plural(/$/, 's')
plural(/s$/i, 's')
plural(/(alias|(?:stat|octop|vir|b)us)$/i, '\1es')
plural(/(buffal|tomat)o$/i, '\1oes')
plural(/([ti])um$/i, '\1a')