From fdb6a90794089b79a843ab70f0a387cb5baf1613 Mon Sep 17 00:00:00 2001 From: Will Jessop Date: Sat, 10 Aug 2019 02:51:37 +0100 Subject: [PATCH] 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] --- actionview/lib/action_view/renderer/partial_renderer.rb | 3 --- 1 file changed, 3 deletions(-) diff --git a/actionview/lib/action_view/renderer/partial_renderer.rb b/actionview/lib/action_view/renderer/partial_renderer.rb index 46bc4c9d5f..191e8162ae 100644 --- a/actionview/lib/action_view/renderer/partial_renderer.rb +++ b/actionview/lib/action_view/renderer/partial_renderer.rb @@ -105,9 +105,6 @@ module ActionView # # <%= 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 # # Two controllers can share a set of partials and render them like this: