method

empty?

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

Method deprecated or moved

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

empty?()
public

No documentation available.

# File activerecord/lib/active_record/associations/has_many_association.rb, line 39
      def empty?
        if reflection.has_cached_counter?
          size.zero?
        else
          super
        end
      end