File tree Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -65,7 +65,7 @@ def configure(&block)
65
65
config . after_initialize do |app |
66
66
config = app . config
67
67
68
- manifest_path = config . assets . manifest || File . join ( app . root , 'public' , config . assets . prefix )
68
+ manifest_path = config . assets . manifest || File . join ( config . paths [ 'public' ] . first , config . assets . prefix )
69
69
70
70
# Configuration options that should invalidate
71
71
# the Sprockets cache when changed.
Original file line number Diff line number Diff line change @@ -185,4 +185,13 @@ def test_manifest_path
185
185
186
186
assert_match %r{config/foo/manifest-.*.json} , ActionView ::Base . assets_manifest . path
187
187
end
188
+
189
+ def test_manifest_path_respects_rails_public_path
190
+ app . configure do
191
+ config . paths [ 'public' ] = 'test_public'
192
+ end
193
+ app . initialize!
194
+
195
+ assert_match %r{test_public/assets/manifest-.*.json} , ActionView ::Base . assets_manifest . path
196
+ end
188
197
end
You can’t perform that action at this time.
0 commit comments