Sha256: 42bb616bf0d9661d197cdf2644c605d5ccff2638898a71dfff7299e24d3c37da
Contents?: true
Size: 582 Bytes
Versions: 2
Compression:
Stored size: 582 Bytes
Contents
module SecondLevelCache module Adapter module Paranoia module ActiveRecord extend ActiveSupport::Concern included do after_destroy :expire_second_level_cache end end module Mixin extend ActiveSupport::Concern def write_second_level_cache # Avoid rewrite cache again, when record has been soft deleted return if respond_to?(:deleted?) && send(:deleted?) super end alias_method :update_second_level_cache, :write_second_level_cache end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
second_level_cache-2.7.1 | lib/second_level_cache/adapter/paranoia.rb |
second_level_cache-2.7.0 | lib/second_level_cache/adapter/paranoia.rb |