Sha256: 471f72434bfa9db1615956a35f5051022a76574893f76e641d4b010ef35faa14

Contents?: true

Size: 467 Bytes

Versions: 1

Compression:

Stored size: 467 Bytes

Contents

require_relative 'rails-settings/settings'
require_relative 'rails-settings/scoped_settings'
require_relative 'rails-settings/cached_settings'
require_relative 'rails-settings/extend'

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rails-settings-cached-0.4.3 lib/rails-settings-cached.rb