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 13:25:45 -0300 |
commit | e275817116122893195579904e2f518b6125464f (patch) | |
tree | af56e769126885ea6e05d8a30020a6466b353621 /actionpack | |
parent | 4280b20cde6d0ec4694f25288832d098c83cceba (diff) | |
download | rails-e275817116122893195579904e2f518b6125464f.tar.gz rails-e275817116122893195579904e2f518b6125464f.tar.bz2 rails-e275817116122893195579904e2f518b6125464f.zip |
Add option to configure Sprockets logger
Diffstat (limited to 'actionpack')
-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 |