rails: add 'URL' inflection.

Make it so we can write `ArtistURL` instead of `ArtistUrl`.
This commit is contained in:
evazion
2022-02-21 08:41:05 -06:00
parent fbab273c81
commit 60a26af6e3
8 changed files with 16 additions and 14 deletions

View File

@@ -6,6 +6,8 @@
ActiveSupport::Inflector.inflections(:en) do |inflect|
inflect.uncountable "general"
inflect.acronym "FFmpeg"
inflect.acronym "URL"
inflect.acronym "URLs"
# inflect.plural /^(ox)$/i, '\1en'
# inflect.singular /^(ox)en/i, '\1'
# inflect.irregular 'person', 'people'