Sha256: 319630b437c5e62a8a48d9d0b7dc8bb53a7b8c6d5d50141a9cca05fffd335dd2

Contents?: true

Size: 598 Bytes

Versions: 1

Compression:

Stored size: 598 Bytes

Contents

module CacheDebugging
  class Railtie < Rails::Railtie
    config.cache_debugging = ActiveSupport::OrderedOptions.new(
      # raise exceptions if templates aren't in the dependency tree
      strict_dependencies: false,

      # [0,1] - decimal (percent) of cache hits to check
      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

1 entries across 1 versions & 1 rubygems

Version Path
cache_debugging-0.0.1 lib/cache_debugging/railtie.rb