Sha256: d269f7d161ebd6f576482b7087f7f6d7d838a14dd6180906ccab916be7cbbe15
Contents?: true
Size: 524 Bytes
Versions: 32
Compression:
Stored size: 524 Bytes
Contents
# frozen-string-literal: true module Mobility module Plugins module ActiveModel =begin Adds hooks to clear Mobility cache when AM dirty reset methods are called. =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) end end end end register_plugin(:active_model_cache, ActiveModel::Cache) end end
Version data entries
32 entries across 32 versions & 1 rubygems