method

collection_from_options

rails latest stable - Class: ActionView::PartialRenderer

Method deprecated or moved

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

collection_from_options()
private

No documentation available.

# File actionview/lib/action_view/renderer/partial_renderer.rb, line 417
      def collection_from_options
        if @options.key?(:collection)
          collection = @options[:collection]
          collection ? collection.to_a : []
        end
      end