From 02e4d7ffd4b96d13efd0c5ebba703606fc2e6414 Mon Sep 17 00:00:00 2001 From: Guillermo Iguaran Date: Tue, 17 Jan 2012 22:05:56 -0500 Subject: Silent Sprockets logger when config.assets.logger is set to false --- actionpack/lib/sprockets/railtie.rb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'actionpack/lib/sprockets/railtie.rb') diff --git a/actionpack/lib/sprockets/railtie.rb b/actionpack/lib/sprockets/railtie.rb index 9f4151e4b3..44ddab0950 100644 --- a/actionpack/lib/sprockets/railtie.rb +++ b/actionpack/lib/sprockets/railtie.rb @@ -21,9 +21,12 @@ module Sprockets require 'sprockets' app.assets = Sprockets::Environment.new(app.root.to_s) do |env| - env.logger = config.assets.logger || ::Rails.logger env.version = ::Rails.env + "-#{config.assets.version}" + if config.assets.logger != false + env.logger = config.assets.logger || ::Rails.logger + end + if config.assets.cache_store != false env.cache = ActiveSupport::Cache.lookup_store(config.assets.cache_store) || ::Rails.cache end -- cgit v1.2.3