class ActionView::PartialRenderer

def collection_from_options

def collection_from_options
  if @options.key?(:collection)
    collection = @options[:collection]
    collection.respond_to?(:to_ary) ? collection.to_ary : []
  end
end