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 187bdc1 commit b52d19fCopy full SHA for b52d19f
lib/sprockets/railtie.rb
@@ -36,6 +36,17 @@ def assets
36
# Returns Sprockets::Manifest for app config.
37
attr_accessor :assets_manifest
38
end
39
+
40
+ class Engine < Railtie
41
+ # Skip defining append_assets_path on Rails <= 4.2
42
+ unless initializers.find { |init| init.name == :append_assets_path }
43
+ initializer :append_assets_path, group: :all do |app|
44
+ app.config.assets.paths.unshift(*paths["vendor/assets"].existent_directories)
45
+ app.config.assets.paths.unshift(*paths["lib/assets"].existent_directories)
46
+ app.config.assets.paths.unshift(*paths["app/assets"].existent_directories)
47
+ end
48
49
50
51
52
module Sprockets
0 commit comments