From 1d0a2098792afd0bf9e7fb7b082766b01a67ab24 Mon Sep 17 00:00:00 2001 From: Brandon Weaver Date: Thu, 18 Feb 2016 13:54:51 -0800 Subject: [PATCH] Update railtie to ignore no-extension files Updated the railtie to ignore files with no extensions, such as LICENSE, that cause sprockets to error out on assets compilation. --- lib/sprockets/railtie.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/sprockets/railtie.rb b/lib/sprockets/railtie.rb index 4615fb79..f61cc885 100644 --- a/lib/sprockets/railtie.rb +++ b/lib/sprockets/railtie.rb @@ -60,7 +60,7 @@ class Railtie < ::Rails::Railtie LOOSE_APP_ASSETS = lambda do |logical_path, filename| filename.start_with?(::Rails.root.join("app/assets").to_s) && - !%w(.js .css).include?(File.extname(logical_path)) + !['.js', '.css', ''].include?(File.extname(logical_path)) end class OrderedOptions < ActiveSupport::OrderedOptions