Class: ActiveSupport::Cache::Store

Inherits:
Object
  • Object
show all
Defined in:
lib/skylight/normalizers/active_support/cache.rb

Class Method Summary collapse

Class Method Details

.instrumentObject



37
38
39
# File 'lib/skylight/normalizers/active_support/cache.rb', line 37

def self.instrument
  true
end

.instrument=(val) ⇒ Object



41
42
43
44
45
46
47
# File 'lib/skylight/normalizers/active_support/cache.rb', line 41

def self.instrument=(val)
  unless val
    Rails.logger.warn "[WARNING] Skylight has patched ActiveSupport::Cache::Store.instrument to always be true. " \
                      "In future versions of Rails, this method will no longer be settable. " \
                      "See https://github.com/rails/rails/pull/15943 for more information."
  end
end