Sha256: c744d11148ee6bdf0ee201491974068b90d60653026b9b444d58761b6cc7616c

Contents?: true

Size: 386 Bytes

Versions: 2

Compression:

Stored size: 386 Bytes

Contents

module SecondLevelCache
  module ActiveRecord
    module Persistence
      def update_column(name, value)
        super(name, value).tap { update_second_level_cache }
      end

      def reload(options = nil)
        expire_second_level_cache
        super(options)
      end

      def touch(*names)
        super(*names).tap { update_second_level_cache }
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
second_level_cache-2.2.2 lib/second_level_cache/active_record/persistence.rb
second_level_cache-2.2.1 lib/second_level_cache/active_record/persistence.rb