diff --git a/lib/active_settings.rb b/lib/active_settings.rb index 5a36f90..ed6292d 100644 --- a/lib/active_settings.rb +++ b/lib/active_settings.rb @@ -122,13 +122,11 @@ def from_env(env) end # rubocop:enable Metrics/MethodLength, Metrics/CyclomaticComplexity, Metrics/AbcSize, Metrics/PerceivedComplexity - # rubocop:disable Security/YAMLLoad def load_yaml_file(file) YAML.load(ERB.new(File.read(file)).result, aliases: true).to_hash rescue ArgumentError YAML.load(ERB.new(File.read(file)).result).to_hash end - # rubocop:enable Security/YAMLLoad private