mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Remove misleading documentation
The docs for ActionView partial renderer state: > NOTE: Due to backwards compatibility concerns, the collection can't be one of hashes. Normally you'd also just keep domain objects, like Active Records, in there. The reporter stated: > I can render a collection of hashes without problems: > > = render :partial => "info_row", :collection => my_collection, :as => :d I tested this in a Rails 6.0 rc2 app and hashes were passed as described. Fixes #36897. [ci skip]
This commit is contained in:
parent
599c170d8e
commit
fdb6a90794
1 changed files with 0 additions and 3 deletions
|
@ -105,9 +105,6 @@ module ActionView
|
||||||
#
|
#
|
||||||
# <%= render(partial: "ad", collection: @advertisements) || "There's no ad to be displayed" %>
|
# <%= render(partial: "ad", collection: @advertisements) || "There's no ad to be displayed" %>
|
||||||
#
|
#
|
||||||
# NOTE: Due to backwards compatibility concerns, the collection can't be one of hashes. Normally you'd also
|
|
||||||
# just keep domain objects, like Active Records, in there.
|
|
||||||
#
|
|
||||||
# == \Rendering shared partials
|
# == \Rendering shared partials
|
||||||
#
|
#
|
||||||
# Two controllers can share a set of partials and render them like this:
|
# Two controllers can share a set of partials and render them like this:
|
||||||
|
|
Loading…
Reference in a new issue