diff options
author | José Valim <jose.valim@gmail.com> | 2012-01-17 08:33:54 -0800 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2012-01-17 08:33:54 -0800 |
commit | 98081cbe06c389bb022d777ce03a7054061ceca5 (patch) | |
tree | af56e769126885ea6e05d8a30020a6466b353621 | |
parent | 4280b20cde6d0ec4694f25288832d098c83cceba (diff) | |
parent | e275817116122893195579904e2f518b6125464f (diff) | |
download | rails-98081cbe06c389bb022d777ce03a7054061ceca5.tar.gz rails-98081cbe06c389bb022d777ce03a7054061ceca5.tar.bz2 rails-98081cbe06c389bb022d777ce03a7054061ceca5.zip |
Merge pull request #4499 from rafaelfranca/patch-1
Add option to configure Sprockets logger
-rw-r--r-- | actionpack/lib/sprockets/railtie.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/sprockets/railtie.rb b/actionpack/lib/sprockets/railtie.rb index a7eb03acaf..9f4151e4b3 100644 --- a/actionpack/lib/sprockets/railtie.rb +++ b/actionpack/lib/sprockets/railtie.rb @@ -21,7 +21,7 @@ module Sprockets require 'sprockets' app.assets = Sprockets::Environment.new(app.root.to_s) do |env| - env.logger = ::Rails.logger + env.logger = config.assets.logger || ::Rails.logger env.version = ::Rails.env + "-#{config.assets.version}" if config.assets.cache_store != false |