instance method
collection_from_options
Ruby on Rails 4.2.9
Since v4.2.9 Last seen in v6.0.6 PrivateSignature
collection_from_options()
No documentation comment.
Source
# 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
Defined in actionview/lib/action_view/renderer/partial_renderer.rb line 401
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionView::PartialRenderer