Sha256: 1f92a99b35ee24e1f87f5fc60580ffea17dc0dbfee7ef0e3002fcf61020b13a6

Contents?: true

Size: 370 Bytes

Versions: 4

Compression:

Stored size: 370 Bytes

Contents

module DbMemoize
  class Railtie < ::Rails::Railtie
    initializer 'Rails logger' do
      DbMemoize.logger = Rails.logger

      # by default invalidate cache when db schema has changed
      DbMemoize.default_custom_key = ActiveRecord::Migrator.current_version
    end

    rake_tasks do
      load 'tasks/clear.rake'
      load 'tasks/warmup.rake'
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
db_memoize-0.1.3 lib/db_memoize/railtie.rb
db_memoize-0.1.2 lib/db_memoize/railtie.rb
db_memoize-0.1.1 lib/db_memoize/railtie.rb
db_memoize-0.1.0 lib/db_memoize/railtie.rb