Method: ActiveRecord::Reflection::ThroughReflection#clear_association_scope_cache

Defined in:
activerecord/lib/active_record/reflection.rb

#clear_association_scope_cacheObject

This is for clearing cache on the reflection. Useful for tests that need to compare SQL queries on associations.



840
841
842
843
844
# File 'activerecord/lib/active_record/reflection.rb', line 840

def clear_association_scope_cache # :nodoc:
  delegate_reflection.clear_association_scope_cache
  source_reflection.clear_association_scope_cache
  through_reflection.clear_association_scope_cache
end