Skip to content
This repository
Browse code

Fix #3993 assets:precompile task does not detect index files

  • Loading branch information...
commit df8457748ebbfa092c4c10aedda57aeef2f28776 1 parent 5fe88b1
Dmitry Vorotilin authored May 01, 2012
3  actionpack/lib/sprockets/static_compiler.rb
@@ -16,6 +16,9 @@ def initialize(env, target, paths, options = {})
16 16
     def compile
17 17
       manifest = {}
18 18
       env.each_logical_path do |logical_path|
  19
+        if File.basename(logical_path)[/[^\.]+/, 0] == 'index'
  20
+          logical_path.sub!(/\/index\./, '.')
  21
+        end
19 22
         next unless compile_path?(logical_path)
20 23
         if asset = env.find_asset(logical_path)
21 24
           manifest[logical_path] = write_asset(asset)

0 notes on commit df84577

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