Permalink
Browse files

Fix assets prefix joining

  • Loading branch information...
josh committed Mar 31, 2011
1 parent 203b151 commit bcde6cdf27e96a934466ee16b273846a76c4e335
Showing with 1 addition and 1 deletion.
  1. +1 −1 railties/lib/rails/application.rb
@@ -145,7 +145,7 @@ def build_asset_environment
return unless config.assets.enabled
require 'sprockets'
env = Sprockets::Environment.new(root.to_s)
- env.static_root = root.join("public/#{config.assets.prefix}")
+ env.static_root = root.join("public").join(config.assets.prefix)
env
end

0 comments on commit bcde6cd

Please sign in to comment.