method

select

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.

select(select = nil)
public

No documentation available.

# File activerecord/lib/active_record/associations/association_collection.rb, line 29
      def select(select = nil)
        if block_given?
          load_target
          @target.select.each { |e| yield e }
        else
          scoped.select(select)
        end
      end