method
dirties_query_cache
v3.0.0 -
Show latest stable
- Class:
ActiveRecord::ConnectionAdapters::QueryCache
dirties_query_cache(base, *method_names)public
No documentation available.
# File activerecord/lib/active_record/connection_adapters/abstract/query_cache.rb, line 11
def dirties_query_cache(base, *method_names)
method_names.each do |method_name|
base.class_eval "def \#{method_name}(*) # def update_with_query_dirty(*args)\nclear_query_cache if @query_cache_enabled # clear_query_cache if @query_cache_enabled\nsuper # update_without_query_dirty(*args)\nend # end\n", __FILE__, __LINE__ + 1
end
end