Permalink
Browse files

Use top level Rails constant

  • Loading branch information...
1 parent 4bb0a8b commit 0599e16dd9517acedf8bbc0dc27adb7689eddfb9 @pixeltrix pixeltrix committed Jul 24, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 actionpack/lib/sprockets/railtie.rb
@@ -61,10 +61,10 @@ def asset_environment(app)
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

0 comments on commit 0599e16

Please sign in to comment.