Sha256: 5820877924064e1704afbc9a26390c3bfd0f520d4901f49ff6aac6feb8902434

Contents?: true

Size: 284 Bytes

Versions: 3

Compression:

Stored size: 284 Bytes

Contents

module RailsSettings
  class Railtie < Rails::Railtie
    initializer 'rails_settings.active_record.initialization' do
      RailsSettings::Base.after_commit :rewrite_cache, on: %i(create update)
      RailsSettings::Base.after_commit :expire_cache, on: %i(destroy)
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
rails-settings-cached-0.7.0 lib/rails-settings/railtie.rb
rails-settings-cached-0.6.6 lib/rails-settings/railtie.rb
rails-settings-cached-0.6.5 lib/rails-settings/railtie.rb