diff options
author | Kevin McPhillips <github@kevinmcphillips.ca> | 2015-04-06 22:20:57 -0400 |
---|---|---|
committer | Kevin McPhillips <github@kevinmcphillips.ca> | 2015-04-13 23:43:34 -0400 |
commit | 2b8acdcd21e61a69eefb5c3ef132995c287c0a8e (patch) | |
tree | a8ba1012769c9203eb176688ad8f59fb33686987 /actionview/lib/action_view/helpers/controller_helper.rb | |
parent | efaec3dd63df113c7931f84d6b1d80f26307d93c (diff) | |
download | rails-2b8acdcd21e61a69eefb5c3ef132995c287c0a8e.tar.gz rails-2b8acdcd21e61a69eefb5c3ef132995c287c0a8e.tar.bz2 rails-2b8acdcd21e61a69eefb5c3ef132995c287c0a8e.zip |
Override default form builder for a controller
Diffstat (limited to 'actionview/lib/action_view/helpers/controller_helper.rb')
-rw-r--r-- | actionview/lib/action_view/helpers/controller_helper.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/actionview/lib/action_view/helpers/controller_helper.rb b/actionview/lib/action_view/helpers/controller_helper.rb index 74ef25f7c1..3569fba8c6 100644 --- a/actionview/lib/action_view/helpers/controller_helper.rb +++ b/actionview/lib/action_view/helpers/controller_helper.rb @@ -14,6 +14,7 @@ module ActionView if @_controller = controller @_request = controller.request if controller.respond_to?(:request) @_config = controller.config.inheritable_copy if controller.respond_to?(:config) + @_default_form_builder = controller.default_form_builder if controller.respond_to?(:default_form_builder) end end |