We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 205d367 commit a9620efCopy full SHA for a9620ef
lib/sprockets/railtie.rb
@@ -40,8 +40,8 @@ def assets
40
41
module Sprockets
42
class Railtie < ::Rails::Railtie
43
- LOOSE_APP_ASSETS = lambda do |filename, path|
44
- path.start_with?(::Rails.root.join("app/assets").to_s) &&
+ LOOSE_APP_ASSETS = lambda do |logical_path, filename|
+ filename.start_with?(::Rails.root.join("app/assets").to_s) &&
45
!%w(.js .css).include?(File.extname(logical_path))
46
end
47
0 commit comments