method

to_ary

rails latest stable - Class: ActiveRecord::Associations::AssociationCollection

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v3.0.9) is shown here.

to_ary()
public

No documentation available.

# File activerecord/lib/active_record/associations/association_collection.rb, line 99
      def to_ary
        load_target
        if @target.is_a?(Array)
          @target.to_ary
        else
          Array.wrap(@target)
        end
      end