mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Let capture handle the yielding.
This commit is contained in:
parent
3fc609ee41
commit
3eda7cf090
1 changed files with 1 additions and 4 deletions
|
@ -527,10 +527,7 @@ module ActionView
|
||||||
end
|
end
|
||||||
|
|
||||||
builder = options[:builder] || ActionView::Base.default_form_builder
|
builder = options[:builder] || ActionView::Base.default_form_builder
|
||||||
|
capture(builder.new(object_name, object, self, options, block), &block)
|
||||||
capture do
|
|
||||||
yield builder.new(object_name, object, self, options, block)
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
||||||
# Returns a label tag tailored for labelling an input field for a specified attribute (identified by +method+) on an object
|
# Returns a label tag tailored for labelling an input field for a specified attribute (identified by +method+) on an object
|
||||||
|
|
Loading…
Reference in a new issue