diff options
Diffstat (limited to 'railties/lib')
-rw-r--r-- | railties/lib/rails/engine.rb | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/railties/lib/rails/engine.rb b/railties/lib/rails/engine.rb index 04676a42dd..82ce4c8cbb 100644 --- a/railties/lib/rails/engine.rb +++ b/railties/lib/rails/engine.rb @@ -463,7 +463,6 @@ module Rails require 'sprockets' env = Sprockets::Environment.new(root.to_s) - # env.logger = Rails.logger env.static_root = root.join("public") self.class.default_sprockets_paths.each do |pattern| @@ -572,6 +571,10 @@ module Rails # consistently executed after all the initializers above across all engines. end + initializer "sprockets.logger" do + assets.logger = Rails.logger + end + rake_tasks do next if self.is_a?(Rails::Application) |