Sha256: 36445b9d42ca9aacf078626364ac2347698e286b0b5917f4030bbb94191d6918

Contents?: true

Size: 251 Bytes

Versions: 17

Compression:

Stored size: 251 Bytes

Contents

# frozen_string_literal: true

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

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
rails-settings-cached-2.5.2 lib/rails-settings/railtie.rb
rails-settings-cached-2.5.1 lib/rails-settings/railtie.rb
rails-settings-cached-2.5.0 lib/rails-settings/railtie.rb
rails-settings-cached-2.4.1 lib/rails-settings/railtie.rb
rails-settings-cached-2.4.0 lib/rails-settings/railtie.rb
rails-settings-cached-2.3.5 lib/rails-settings/railtie.rb
rails-settings-cached-2.3.4 lib/rails-settings/railtie.rb
rails-settings-cached-2.3.3 lib/rails-settings/railtie.rb
rails-settings-cached-2.3.2 lib/rails-settings/railtie.rb
rails-settings-cached-2.3.1 lib/rails-settings/railtie.rb
rails-settings-cached-2.2.1 lib/rails-settings/railtie.rb
rails-settings-cached-2.2.0 lib/rails-settings/railtie.rb
rails-settings-cached-2.1.1 lib/rails-settings/railtie.rb
rails-settings-cached-2.1.0 lib/rails-settings/railtie.rb
rails-settings-cached-2.0.4 lib/rails-settings/railtie.rb
rails-settings-cached-2.0.3 lib/rails-settings/railtie.rb
rails-settings-cached-2.0.2 lib/rails-settings/railtie.rb