Sha256: 3c82513551ce4adbe86f34e8eba4e8ffe47def95ce44e665aed7fec2834c05e2
Contents?: true
Size: 587 Bytes
Versions: 32
Compression:
Stored size: 587 Bytes
Contents
# frozen-string-literal: true require "mobility/plugins/active_model/cache" module Mobility module Plugins module ActiveRecord =begin Resets cache on calls to +reload+, in addition to other AM dirty reset methods. =end module Cache extend Plugin requires :cache, include: false included_hook do |klass, _| if options[:cache] define_cache_hooks(klass, :changes_applied, :clear_changes_information, :reload) end end end end register_plugin(:active_record_cache, ActiveRecord::Cache) end end
Version data entries
32 entries across 32 versions & 1 rubygems