Permalink
Browse files

Assign sprockets static root

  • Loading branch information...
1 parent 10c7e61 commit cef10d8ec58a661c231c5a9e0dc3e01165831807 @josh josh committed Mar 22, 2011
Showing with 1 addition and 0 deletions.
  1. +1 −0 railties/lib/rails/application.rb
View
1 railties/lib/rails/application.rb
@@ -160,6 +160,7 @@ def build_asset_environment
env = Sprockets::Environment.new(root.to_s)
env.logger = Rails.logger
+ env.static_root = Rails.root.join("public/assets")
env.ensure_fresh_assets = !config.action_controller.perform_caching
self.class.default_sprockets_paths.each do |pattern|

0 comments on commit cef10d8

Please sign in to comment.