lib/cache_debugging/railtie.rb in cache_debugging-0.0.1 vs lib/cache_debugging/railtie.rb in cache_debugging-0.1.0
- old
+ new
@@ -1,13 +1,13 @@
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,
+ config.cache_debugging = ActiveSupport::OrderedOptions.new
- # [0,1] - decimal (percent) of cache hits to check
- view_sampling: 0
- )
+ # 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
\ No newline at end of file