method
dirties_query_cache
Ruby on Rails latest stable (v7.1.3.2)
-
0 notes -
Class: ActiveRecord::ConnectionAdapters::QueryCache
dirties_query_cache(base, *method_names)
public
Hide source
# File activerecord/lib/active_record/connection_adapters/abstract/query_cache.rb, line 20 def dirties_query_cache(base, *method_names) method_names.each do |method_name| base.class_eval def #{method_name}(...) ActiveRecord::Base.clear_query_caches_for_current_thread super end, __FILE__, __LINE__ + 1 end end