instance method
collection
Ruby on Rails 3.0.20
Since v3.0.20 Last seen in v3.0.20 PrivateSignature
collection()
No documentation comment.
Source
# File actionpack/lib/action_view/render/partials.rb, line 340
def collection
if @options.key?(:collection)
collection = @options[:collection]
collection.respond_to?(:to_ary) ? collection.to_ary : []
end
end
Defined in actionpack/lib/action_view/render/partials.rb line 340
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionView::Partials::PartialRenderer