= private = protected
clear_association_cache()
Clears out the association cache.
# File activerecord/lib/active_record/associations.rb, line 118 def clear_association_cache #:nodoc: self.class.reflect_on_all_associations.to_a.each do |assoc| instance_variable_set "@#{assoc.name}", nil end unless self.new_record? end