Sha256: 5470e7dbb4f187e521393caf50dfe2f3710afed91cd2589debfff36c6639b775

Contents?: true

Size: 467 Bytes

Versions: 7

Compression:

Stored size: 467 Bytes

Contents

require_relative 'rails-settings/settings'
require_relative 'rails-settings/cached_settings'
require_relative 'rails-settings/scoped_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

7 entries across 7 versions & 1 rubygems

Version Path
rails-settings-cached-0.5.4 lib/rails-settings-cached.rb
rails-settings-cached-0.5.3 lib/rails-settings-cached.rb
rails-settings-cached-0.5.2 lib/rails-settings-cached.rb
rails-settings-cached-0.5.0 lib/rails-settings-cached.rb
rails-settings-cached-0.4.6 lib/rails-settings-cached.rb
rails-settings-cached-0.4.5 lib/rails-settings-cached.rb
rails-settings-cached-0.4.4 lib/rails-settings-cached.rb