mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
Let capture handle the yielding.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user