Skip to content

Commit 567f15e

Browse files
committed
Merge pull request #327 from baweaver/patch-1
Update railtie to ignore no-extension files
2 parents 6cc3159 + 1d0a209 commit 567f15e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/sprockets/railtie.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ class Railtie < ::Rails::Railtie
6060

6161
LOOSE_APP_ASSETS = lambda do |logical_path, filename|
6262
filename.start_with?(::Rails.root.join("app/assets").to_s) &&
63-
!%w(.js .css).include?(File.extname(logical_path))
63+
!['.js', '.css', ''].include?(File.extname(logical_path))
6464
end
6565

6666
class OrderedOptions < ActiveSupport::OrderedOptions

0 commit comments

Comments
 (0)