Skip to content

Commit aeac9fe

Browse files
committed
Still automatically recompile other app/assets paths for
compatibility Reverts 3bd4470
1 parent faf3658 commit aeac9fe

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

lib/sprockets/railtie.rb

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,8 @@ class Engine < Railtie
5757

5858
module Sprockets
5959
class Railtie < ::Rails::Railtie
60-
LOOSE_APP_ASSETS = lambda do |logical_path, filename|
61-
filename.start_with?(::Rails.root.join("app/assets").to_s) &&
62-
!%w(.js .css).include?(File.extname(logical_path))
60+
LOOSE_APP_ASSETS = lambda do |filename, path|
61+
path =~ /app\/assets/ && !%w(.js .css).include?(File.extname(filename))
6362
end
6463

6564
class OrderedOptions < ActiveSupport::OrderedOptions

0 commit comments

Comments
 (0)