method

collection

rails latest stable - Class: ActionView::Partials::PartialRenderer

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v3.0.9) is shown here.

collection()
private

No documentation available.

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