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 faf3658 commit aeac9feCopy full SHA for aeac9fe
lib/sprockets/railtie.rb
@@ -57,9 +57,8 @@ class Engine < Railtie
57
58
module Sprockets
59
class Railtie < ::Rails::Railtie
60
- LOOSE_APP_ASSETS = lambda do |logical_path, filename|
61
- filename.start_with?(::Rails.root.join("app/assets").to_s) &&
62
- !%w(.js .css).include?(File.extname(logical_path))
+ LOOSE_APP_ASSETS = lambda do |filename, path|
+ path =~ /app\/assets/ && !%w(.js .css).include?(File.extname(filename))
63
end
64
65
class OrderedOptions < ActiveSupport::OrderedOptions
0 commit comments