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 df1fcd3 commit 21bd2aaCopy full SHA for 21bd2aa
lib/sprockets/railtie.rb
@@ -24,10 +24,6 @@ def assets
24
path = "#{config.root}/tmp/cache/assets/#{::Rails.env}"
25
env.cache = Sprockets::Cache::FileStore.new(path)
26
27
- config.assets.paths.each do |path|
28
- env.append_path(path)
29
- end
30
-
31
env.context_class.class_eval do
32
include ::Sprockets::Rails::Helper
33
end
@@ -75,6 +71,11 @@ def configure(&block)
75
71
76
72
manifest_path = File.join(app.root, 'public', config.assets.prefix)
77
73
74
+ # Copy config.assets.paths to Sprockets
+ config.assets.paths.each do |path|
+ app.assets.append_path path
+ end
78
+
79
ActiveSupport.on_load(:action_view) do
80
include Sprockets::Rails::Helper
81
0 commit comments