lib/hanami/utils/inflector.rb in hanami-utils-1.3.0.beta1 vs lib/hanami/utils/inflector.rb in hanami-utils-1.3.0
- old
+ new
@@ -321,9 +321,10 @@
# Since ROM uses Inflecto for it inferences, we need to add an exception to it
# when one is registered against our Inflector.
# @api private
def self.add_to_inflecto(singular, plural)
return unless defined? Inflecto
+
Inflecto.inflections.irregular(singular, plural)
end
# Add an uncountable word
#