File tree 2 files changed +5
-2
lines changed
lib/critical_path_css/rails
spec/lib/critical_path_css/rails
2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -22,9 +22,12 @@ def format_css_paths
22
22
if config [ 'css_path' ]
23
23
config [ 'css_path' ] = format_path ( config [ 'css_path' ] )
24
24
config [ 'css_paths' ] = [ ]
25
- else
25
+ elsif config [ 'css_paths' ]
26
26
config [ 'css_path' ] = ''
27
27
config [ 'css_paths' ] = config [ 'css_paths' ] . collect { |path | format_path ( path ) }
28
+ else
29
+ config [ 'css_path' ] = ActionController ::Base . helpers . stylesheet_path ( config [ 'manifest_name' ] , host : '' )
30
+ config [ 'css_paths' ] = [ ]
28
31
end
29
32
end
30
33
Original file line number Diff line number Diff line change 81
81
}
82
82
83
83
it 'sets css_path with the path' do
84
- expect ( subject . config [ 'css_path' ] ) . to eq '/app/spec/internal/public/test .css'
84
+ expect ( subject . config [ 'css_path' ] ) . to eq '/stylesheets/application .css'
85
85
end
86
86
87
87
it 'leaves css_paths empty' do
You can’t perform that action at this time.
0 commit comments