We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 89e6757 commit 52e8e5cCopy full SHA for 52e8e5c
lib/critical_path_css/rails/config_loader.rb
@@ -21,11 +21,10 @@ def configuration_file_path
21
def format_css_paths
22
config['css_paths'] = [config['css_path']] if config['css_path']
23
24
- if config['css_paths']
25
- config['css_paths'].map! { |path| format_path(path) }
26
- else
27
- config['css_paths'] = [format_path(ActionController::Base.helpers.stylesheet_path(config['manifest_name'], host: ''))]
+ unless config['css_paths']
+ config['css_paths'] = [ActionController::Base.helpers.stylesheet_path(config['manifest_name'], host: '')]
28
end
+ config['css_paths'].map! { |path| format_path(path) }
29
30
31
def format_path(path)
0 commit comments