Create new model Avis

This commit is contained in:
Mathieu Magnin 2017-04-25 12:09:11 +02:00 committed by Simon Lehericey
parent 3e0977d56f
commit 72494de76f
6 changed files with 34 additions and 1 deletions

View file

@ -15,6 +15,7 @@ ActiveSupport::Inflector.inflections(:en) do |inflect|
inflect.irregular 'type_de_champ', 'types_de_champ'
inflect.irregular 'type_de_champ_private', 'types_de_champ_private'
inflect.irregular 'assign_to', 'assign_tos'
inflect.irregular('avis', 'avis')
end
# These inflection rules are supported but not enabled by default:
@ -24,4 +25,5 @@ end
ActiveSupport::Inflector.inflections(:fr) do |inflect|
inflect.plural(/$/, 's')
inflect.plural(/(hib|ch|bij|caill|p|gen|jouj)ou$/i, '\1oux')
inflect.irregular('avis', 'avis')
end