mulander is a user on bsd.network. You can follow them or interact with them if you have an account anywhere in the fediverse. If you don't, you can sign up here.
mulander @mulander

irb(main):008:0> "cache".pluralize
=> "caches"
irb(main):009:0> "cache".pluralize.singularize
=> "cach"

, what's a "cach"?

· Web · 0 · 2

@mulander random guess: a misspelling cache, which returns sorta the right thing but not quite?

@mhka it sorta works when you have Cache in a model name and use relation but not quite :)

@mulander One cach, two cache.
Where's the problem? :thaenkin:

@bonzoesc they could ship a default inflection (config/initializers/inflections.rb) for the broken ones - that would at least fix all newly created projects.

@mulander until they have to interop with an old app

english pluralization isn't one-to-one/injective so whatever