From 7d1c79bf4bd260530d5e1a9de306849749587bd7 Mon Sep 17 00:00:00 2001 From: Pierre de La Morinerie Date: Wed, 5 Aug 2020 18:41:16 +0200 Subject: [PATCH] zeitwerk: Url -> URL --- app/helpers/notice_url_helper.rb | 2 +- config/initializers/inflections.rb | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/app/helpers/notice_url_helper.rb b/app/helpers/notice_url_helper.rb index 337cb228a..c1e7df802 100644 --- a/app/helpers/notice_url_helper.rb +++ b/app/helpers/notice_url_helper.rb @@ -1,4 +1,4 @@ -module NoticeUrlHelper +module NoticeURLHelper def notice_url(procedure) if procedure.notice.attached? url_for(procedure.notice) diff --git a/config/initializers/inflections.rb b/config/initializers/inflections.rb index 69ce9269b..1a2c4cdba 100644 --- a/config/initializers/inflections.rb +++ b/config/initializers/inflections.rb @@ -10,6 +10,7 @@ ActiveSupport::Inflector.inflections(:en) do |inflect| # inflect.uncountable %w( fish sheep ) inflect.acronym 'API' inflect.acronym 'RNA' + inflect.acronym 'URL' inflect.irregular 'type_de_champ', 'types_de_champ' inflect.irregular 'type_de_champ_private', 'types_de_champ_private' inflect.irregular 'procedure_revision_type_de_champ', 'procedure_revision_types_de_champ'