Skip to content
Browse files

Non-digest generator must also strip /index.* from paths, since diges…

…t assets are compiled with these stripped paths
  • Loading branch information...
1 parent 80b86a3 commit dfd94211c0433b2a89bd9d9ef89ecc14d2aa354e @ndbroadbent committed Oct 6, 2012
Showing with 3 additions and 0 deletions.
  1. +3 −0 lib/sprockets/static_non_digest_generator.rb
View
3 lib/sprockets/static_non_digest_generator.rb
@@ -27,6 +27,9 @@ def generate
start_time = Time.now.to_f
env.each_logical_path do |logical_path|
+ if File.basename(logical_path)[/[^\.]+/, 0] == 'index'
+ logical_path.sub!(/\/index\./, '.')
+ end
next unless compile_path?(logical_path)
digest_path = @digest_files[logical_path]

0 comments on commit dfd9421

Please sign in to comment.
Something went wrong with that request. Please try again.