config: form_with now generates local forms by default

We can remove the `local: true` parameter, as it is now implied by
default.
This commit is contained in:
Pierre de La Morinerie 2021-03-30 12:38:10 +02:00
parent b65de3e583
commit c2ce20d40c
3 changed files with 3 additions and 3 deletions

View file

@ -18,7 +18,7 @@
.col-xs-6
%h3 Ajouter un instructeur
#procedure_new.section.section-label
= form_with url: { controller: 'admin/instructeurs', action: :create }, local: true do
= form_with url: { controller: 'admin/instructeurs', action: :create } do
.row
.col-xs-5
= render partial: 'admin/instructeurs/informations'

View file

@ -9,7 +9,7 @@
.container
%h1
= form_with model: @procedure, url: url_for({ controller: 'new_administrateur/procedures', action: :update_jeton }), local: true, html: { class: 'form' } do |f|
= form_with model: @procedure, url: url_for({ controller: 'new_administrateur/procedures', action: :update_jeton }), html: { class: 'form' } do |f|
%p.explication
Démarches Simplifiées utilise
= link_to 'API Entreprise', "https://entreprise.api.gouv.fr/"

View file

@ -45,7 +45,7 @@
# Rails.application.config.active_record.legacy_connection_handling = false
# Make `form_with` generate non-remote forms by default.
# Rails.application.config.action_view.form_with_generates_remote_forms = false
Rails.application.config.action_view.form_with_generates_remote_forms = false
# Set the default queue name for the analysis job to the queue adapter default.
Rails.application.config.active_storage.queues.analysis = nil