class ActionView::Renderer

def collection_from_object(object)

def collection_from_object(object)
  object if object.respond_to?(:to_ary)
end