Sha256: 9cc79bda9e8386a0b0f8ff69dd45abdb48ce60f9fb18f2aa25f09f6c5f4344a1

Contents?: true

Size: 312 Bytes

Versions: 3

Compression:

Stored size: 312 Bytes

Contents

# frozen_string_literal: true

module Aqila
  module Cache
    module Callbacks
      extend ActiveSupport::Concern
      include Aqila::Cache::Methods

      included do
        before_save -> { self.class.update_log_table }
        before_destroy -> { self.class.update_log_table }
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
aqila-cache-0.3.0 lib/aqila/cache/callbacks.rb
aqila-cache-0.2.0 lib/aqila/cache/callbacks.rb
aqila-cache-0.1.0 lib/aqila/cache/callbacks.rb