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 b54af68 commit 3bd4470Copy full SHA for 3bd4470
lib/sprockets/railtie.rb
@@ -41,7 +41,8 @@ def assets
41
module Sprockets
42
class Railtie < ::Rails::Railtie
43
LOOSE_APP_ASSETS = lambda do |filename, path|
44
- path =~ /app\/assets/ && !%w(.js .css).include?(File.extname(filename))
+ path.start_with?(::Rails.root.join("app/assets").to_s) &&
45
+ !%w(.js .css).include?(File.extname(logical_path))
46
end
47
48
class OrderedOptions < ActiveSupport::OrderedOptions
0 commit comments