instance method
collection_from_options
Ruby on Rails 7.1.6
Since v6.1.7.10 PrivateSignature
collection_from_options(options)
No documentation comment.
Parameters
-
optionsreq
Source
# File actionview/lib/action_view/renderer/renderer.rb, line 102
def collection_from_options(options)
if options.key?(:collection)
collection = options[:collection]
collection || []
end
end
Defined in actionview/lib/action_view/renderer/renderer.rb line 102
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionView::Renderer