mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
Use top level Rails constant
This commit is contained in:
@@ -61,10 +61,10 @@ module Sprockets
|
||||
env.paths.concat assets.paths
|
||||
end
|
||||
|
||||
env.logger = Rails.logger
|
||||
env.logger = ::Rails.logger
|
||||
|
||||
if env.respond_to?(:cache) && assets.cache_store != false
|
||||
env.cache = ActiveSupport::Cache.lookup_store(assets.cache_store) || Rails.cache
|
||||
env.cache = ActiveSupport::Cache.lookup_store(assets.cache_store) || ::Rails.cache
|
||||
end
|
||||
|
||||
if assets.compress
|
||||
|
||||
Reference in New Issue
Block a user