Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

  • Loading branch information...
commit df8457748ebbfa092c4c10aedda57aeef2f28776 1 parent 5fe88b1
Dmitry Vorotilin route authored
Showing with 3 additions and 0 deletions.
  1. +3 −0  actionpack/lib/sprockets/static_compiler.rb
3  actionpack/lib/sprockets/static_compiler.rb
View
@@ -16,6 +16,9 @@ def initialize(env, target, paths, options = {})
def compile
manifest = {}
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)
if asset = env.find_asset(logical_path)
manifest[logical_path] = write_asset(asset)
Please sign in to comment.
Something went wrong with that request. Please try again.