APIdock / Ruby on Rails
/
Browse About
method

empty?

v4.2.9 - Show latest stable - Class: ActiveRecord::Associations::HasManyAssociation
empty?()
public

No documentation available.

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

Related methods

  • Instance methods
  • empty?
  • handle_dependency
  • insert_record
  • Private methods
  • private_create_record
  • privatecached_counter_attribute_name
  • privateconcat_records
  • privatecount_records
  • privatecounter_must_be_updated_by_has_many?
  • privatedelete_count
  • privatedelete_or_nullify_all_records
  • privatedelete_records
  • privatehas_cached_counter?
  • privateinverse_updates_counter_cache?
  • privateinverse_updates_counter_in_memory?
  • privateinverse_updates_counter_named?
  • privateinverse_which_updates_counter_cache
  • privateinverse_which_updates_counter_named
  • privateupdate_counter
  • privateupdate_counter_if_success
  • privateupdate_counter_in_database
  • privateupdate_counter_in_memory
APIdock API Documentation Browser

Swarmia: the developer productivity platform for modern engineering teams.

© 2026 APIdock