instance method
collection_from_options
Ruby on Rails 7.2.3
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 96
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 96
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionView::Renderer