lib/sandbox_assets/engine.rb in rails-sandbox-assets-0.1.3 vs lib/sandbox_assets/engine.rb in rails-sandbox-assets-0.2.0

- old
+ new

@@ -7,7 +7,16 @@ initializer "sandbox_assets" do |app| config = app.config.sandbox_assets app.config.assets.paths.concat config.assets_paths end + + config.after_initialize do + ActiveSupport.on_load(:action_view) do + default_checker = ActionView::Base.precompiled_asset_checker + ActionView::Base.precompiled_asset_checker = -> logical_path do + default_checker[logical_path] || Thread.current[:skip_precompiled_check] + end + end + end end end