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