instance method collection_from_object

Ruby on Rails 3.0.20

Since v3.0.20 Last seen in v3.0.20 Private

Signature

collection_from_object()

No documentation comment.

Source
# File actionpack/lib/action_view/render/partials.rb, line 347
      def collection_from_object
        if @object.respond_to?(:to_ary)
          @object.to_ary
        end
      end

Defined in actionpack/lib/action_view/render/partials.rb line 347 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActionView::Partials::PartialRenderer

Type at least 2 characters to search.

↑↓ navigate · open · esc close