method
collection
v3.0.0 -
Show latest stable
- Class:
ActionView::Partials::PartialRenderer
collection()private
No documentation available.
# File actionpack/lib/action_view/render/partials.rb, line 301
def collection
if @object.respond_to?(:to_ary)
@object
elsif @options.key?(:collection)
@options[:collection] || []
end
end