aboutsummaryrefslogtreecommitdiffstats
path: root/actionview/lib
diff options
context:
space:
mode:
authorSantiago Pastorino <santiago@wyeworks.com>2014-12-01 18:01:49 -0200
committerSantiago Pastorino <santiago@wyeworks.com>2014-12-01 18:01:49 -0200
commitcd77755ae46616f24ae0ad2e586be528bb326be1 (patch)
tree6b47221dbeaf4b3fe27fb3b8dec412f10de3f87a /actionview/lib
parente47b523fae8680d71178297f7e913099430d5f2a (diff)
parenta04c0619617118433db6e01b67d5d082eaaa0189 (diff)
downloadrails-cd77755ae46616f24ae0ad2e586be528bb326be1.tar.gz
rails-cd77755ae46616f24ae0ad2e586be528bb326be1.tar.bz2
rails-cd77755ae46616f24ae0ad2e586be528bb326be1.zip
Merge pull request #17866 from bogdan/default-form-builder
Bugfix config.action_view.default_form_builder option
Diffstat (limited to 'actionview/lib')
-rw-r--r--actionview/lib/action_view/helpers/form_helper.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/actionview/lib/action_view/helpers/form_helper.rb b/actionview/lib/action_view/helpers/form_helper.rb
index 6d10b41bd5..c4371dc705 100644
--- a/actionview/lib/action_view/helpers/form_helper.rb
+++ b/actionview/lib/action_view/helpers/form_helper.rb
@@ -1935,6 +1935,8 @@ module ActionView
end
ActiveSupport.on_load(:action_view) do
- cattr_accessor(:default_form_builder) { ::ActionView::Helpers::FormBuilder }
+ cattr_accessor(:default_form_builder, instance_writer: false, instance_reader: false) do
+ ::ActionView::Helpers::FormBuilder
+ end
end
end