Skip to content

Commit a9620ef

Browse files
committed
Fix logical_path reference
1 parent 205d367 commit a9620ef

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/sprockets/railtie.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,8 @@ def assets
4040

4141
module Sprockets
4242
class Railtie < ::Rails::Railtie
43-
LOOSE_APP_ASSETS = lambda do |filename, path|
44-
path.start_with?(::Rails.root.join("app/assets").to_s) &&
43+
LOOSE_APP_ASSETS = lambda do |logical_path, filename|
44+
filename.start_with?(::Rails.root.join("app/assets").to_s) &&
4545
!%w(.js .css).include?(File.extname(logical_path))
4646
end
4747

0 commit comments

Comments
 (0)