Skip to content

Commit f565058

Browse files
committed
Use the configuration of given application instance to get the public path rather than the Rails constant
1 parent 056d64e commit f565058

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/sprockets/railtie.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ def configure(&block)
6464
config.after_initialize do |app|
6565
config = app.config
6666

67-
manifest_path = File.join(::Rails.public_path, config.assets.prefix)
67+
manifest_path = File.join(config.paths['public'].first, config.assets.prefix)
6868

6969
unless config.assets.version.blank?
7070
app.assets.version += "-#{config.assets.version}"

0 commit comments

Comments
 (0)