Sha256: b5cd5851c280a0c1cbf84f2bfc537cbafe2231cbde5802fef2f0e9a48d7e9363

Contents?: true

Size: 284 Bytes

Versions: 6

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

6 entries across 6 versions & 2 rubygems

Version Path
jdx-rails-settings-0.7.4 lib/rails-settings/railtie.rb
rails-settings-cached-0.7.2 lib/rails-settings/railtie.rb
rails-settings-cached-0.7.1 lib/rails-settings/railtie.rb
rails-settings-cached-0.6.4 lib/rails-settings/railtie.rb
rails-settings-cached-0.6.3 lib/rails-settings/railtie.rb
rails-settings-cached-0.6.2 lib/rails-settings/railtie.rb