method
collection_from_options
v5.2.3 -
Show latest stable
- Class:
ActionView::PartialRenderer
collection_from_options()private
No documentation available.
# File actionview/lib/action_view/renderer/partial_renderer.rb, line 406
def collection_from_options
if @options.key?(:collection)
collection = @options[:collection]
collection ? collection.to_a : []
end
end