APIdock / Ruby on Rails
/
Browse About
method

reset

v5.2.3 - Show latest stable - Class: ActiveRecord::Associations::CollectionAssociation
reset()
public

No documentation available.

# File activerecord/lib/active_record/associations/collection_association.rb, line 75
      def reset
        super
        @target = []
        @association_ids = nil
      end

Related methods

  • Instance methods
  • add_to_target
  • build
  • concat
  • delete
  • delete_all
  • destroy
  • destroy_all
  • empty?
  • find
  • find_from_target?
  • ids_reader
  • ids_writer
  • include?
  • load_target
  • null_scope?
  • reader
  • replace
  • reset
  • scope
  • size
  • transaction
  • writer
  • Private methods
  • private_create_record
  • privatecallback
  • privatecallbacks_for
  • privateconcat_records
  • privatedelete_or_destroy
  • privatedelete_records
  • privatefind_by_scan
  • privatefind_target
  • privateinclude_in_memory?
  • privateinsert_record
  • privatemerge_target_lists
  • privateremove_records
  • privatereplace_common_records_in_memory
  • privatereplace_on_target
  • privatereplace_records
APIdock API Documentation Browser

Swarmia helps engineering teams measure and improve developer productivity.

© 2026 APIdock