File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed
lib/critical_path_css/rails
spec/lib/critical_path_css/rails Expand file tree Collapse file tree 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
2222 if config [ 'css_path' ]
2323 config [ 'css_path' ] = format_path ( config [ 'css_path' ] )
2424 config [ 'css_paths' ] = [ ]
25- else
25+ elsif config [ 'css_paths' ]
2626 config [ 'css_path' ] = ''
2727 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' ] = [ ]
2831 end
2932 end
3033
Original file line number Diff line number Diff line change 8181 }
8282
8383 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'
8585 end
8686
8787 it 'leaves css_paths empty' do
You can’t perform that action at this time.
0 commit comments