method

collection

collection()
private

No documentation available.

# File actionpack/lib/action_view/render/partials.rb, line 301
      def collection
        if @object.respond_to?(:to_ary)
          @object
        elsif @options.key?(:collection)
          @options[:collection] || []
        end
      end