diff options
Diffstat (limited to 'actionpack/lib/action_view/helpers/form_helper.rb')
-rw-r--r-- | actionpack/lib/action_view/helpers/form_helper.rb | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/actionpack/lib/action_view/helpers/form_helper.rb b/actionpack/lib/action_view/helpers/form_helper.rb index 46b2902fb1..d3604925e8 100644 --- a/actionpack/lib/action_view/helpers/form_helper.rb +++ b/actionpack/lib/action_view/helpers/form_helper.rb @@ -527,10 +527,7 @@ module ActionView end builder = options[:builder] || ActionView::Base.default_form_builder - - capture do - yield builder.new(object_name, object, self, options, block) - end + capture(builder.new(object_name, object, self, options, block), &block) end # Returns a label tag tailored for labelling an input field for a specified attribute (identified by +method+) on an object |