lib/autoprefixer-rails/railtie.rb in autoprefixer-rails-5.1.7 vs lib/autoprefixer-rails/railtie.rb in autoprefixer-rails-5.1.7.1

- old
+ new

@@ -21,10 +21,12 @@ end # Read browsers requirements from application config def config(root) file = File.join(root, 'config/autoprefixer.yml') - params = File.exist?(file) ? ::YAML.load_file(file).symbolize_keys : { } + params = ::YAML.load_file(file) if File.exist?(file) + params ||= {} + params = params.symbolize_keys opts = { } opts[:safe] = true if params.delete(:safe) if params[:browsers]