aboutsummaryrefslogtreecommitdiffstats
path: root/actionview/lib
diff options
context:
space:
mode:
Diffstat (limited to 'actionview/lib')
-rw-r--r--actionview/lib/action_view/renderer/partial_renderer.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/actionview/lib/action_view/renderer/partial_renderer.rb b/actionview/lib/action_view/renderer/partial_renderer.rb
index 1b28c180e3..c2b6e6a290 100644
--- a/actionview/lib/action_view/renderer/partial_renderer.rb
+++ b/actionview/lib/action_view/renderer/partial_renderer.rb
@@ -403,7 +403,7 @@ module ActionView
def collection_from_options
if @options.key?(:collection)
- collection = @options[:collection]
+ collection = @options[:collection] || []
collection = collection.to_ary if collection.respond_to?(:to_ary)
collection
end