diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2012-01-17 13:25:45 -0300 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2012-01-17 14:36:23 -0300 |
commit | c4c6bebecfed8ec6baa3e3624acc7cde87f9fae6 (patch) | |
tree | 252ef304e62aca95795dc77f960878ee18421573 /actionpack/lib | |
parent | ed35f3747c2acfeac140e6d8a44bc0e491fca1a3 (diff) | |
download | rails-c4c6bebecfed8ec6baa3e3624acc7cde87f9fae6.tar.gz rails-c4c6bebecfed8ec6baa3e3624acc7cde87f9fae6.tar.bz2 rails-c4c6bebecfed8ec6baa3e3624acc7cde87f9fae6.zip |
Add option to configure Sprockets logger
Diffstat (limited to 'actionpack/lib')
-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 |