diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2017-11-25 11:49:01 -0500 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2017-11-25 11:56:31 -0500 |
commit | 36ac675d2af5838c81afbd7c95b2e403e6366ba5 (patch) | |
tree | 8530dd4bbac60073411ad227d40ea4a2f1a934a4 /actionview | |
parent | 260d6f112a0ffdbe03e6f5051504cb441c1e94cd (diff) | |
download | rails-36ac675d2af5838c81afbd7c95b2e403e6366ba5.tar.gz rails-36ac675d2af5838c81afbd7c95b2e403e6366ba5.tar.bz2 rails-36ac675d2af5838c81afbd7c95b2e403e6366ba5.zip |
Make form_with_generates_ids default in Rails 5.2
When the defaults being loaded are the 5.0 or 5.1 we disable generation
of ids with form_with.
Diffstat (limited to 'actionview')
-rw-r--r-- | actionview/lib/action_view/railtie.rb | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/actionview/lib/action_view/railtie.rb b/actionview/lib/action_view/railtie.rb index 6ac332acbb..73dfb267bb 100644 --- a/actionview/lib/action_view/railtie.rb +++ b/actionview/lib/action_view/railtie.rb @@ -22,9 +22,7 @@ module ActionView initializer "action_view.form_with_generates_remote_forms" do |app| ActiveSupport.on_load(:action_view) do form_with_generates_remote_forms = app.config.action_view.delete(:form_with_generates_remote_forms) - unless form_with_generates_remote_forms.nil? - ActionView::Helpers::FormHelper.form_with_generates_remote_forms = form_with_generates_remote_forms - end + ActionView::Helpers::FormHelper.form_with_generates_remote_forms = form_with_generates_remote_forms end end |