Skip to content
Prev Previous commit
Next Next commit
Load alias for #safe_load
  • Loading branch information
michael-misshore committed Dec 29, 2017
commit 586cc6c46ddc0634cb720879eb7f27040aa6fb1a
2 changes: 1 addition & 1 deletion lib/critical_path_css/rails/config_loader.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ class ConfigLoader
CONFIGURATION_FILENAME = 'critical_path_css.yml'.freeze

def load
config = YAML.safe_load(ERB.new(File.read(configuration_file_path)).result)[::Rails.env]
config = YAML.safe_load(ERB.new(File.read(configuration_file_path)).result, [], [], true)[::Rails.env]
config['css_path'] = "#{::Rails.root}/public" + (
config['css_path'] ||
ActionController::Base.helpers.stylesheet_path(
Expand Down