Sha256: a3fd9419714150f67435461c062c95e5692fb57b10f1cf49bb601a7533eba374

Contents?: true

Size: 631 Bytes

Versions: 2

Compression:

Stored size: 631 Bytes

Contents

module CacheDebugging
  class Railtie < Rails::Railtie
    config.cache_debugging = ActiveSupport::OrderedOptions.new

    # raise exceptions if templates aren't in the dependency tree
    config.cache_debugging.strict_dependencies = false

    # [0,1] - decimal (percent) of cache hits to check
    config.cache_debugging.view_sampling = 0

    initializer "cache_debugging.setup", :before => 'cache_digests' do |app|
      ActiveSupport.on_load(:action_view) do
        include CacheDebugging::CacheBlocks
        include CacheDebugging::StrictDependencies
        include CacheDebugging::ViewSampling
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
cache_debugging-0.1.1 lib/cache_debugging/railtie.rb
cache_debugging-0.1.0 lib/cache_debugging/railtie.rb