Class: Rails::Cache::Debugger::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/rails/cache/debugger/configuration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration.



9
10
11
12
13
14
15
16
# File 'lib/rails/cache/debugger/configuration.rb', line 9

def initialize
  @enabled = true
  @log_events = %w[
    cache_read.active_support
    cache_write.active_support
    cache_fetch_hit.active_support
  ]
end

Instance Attribute Details

#enabledObject

Returns the value of attribute enabled.



7
8
9
# File 'lib/rails/cache/debugger/configuration.rb', line 7

def enabled
  @enabled
end

#log_eventsObject

Returns the value of attribute log_events.



7
8
9
# File 'lib/rails/cache/debugger/configuration.rb', line 7

def log_events
  @log_events
end