lib/csv2hash/yaml_loader.rb in csv2hash-0.6.6 vs lib/csv2hash/yaml_loader.rb in csv2hash-0.6.7
- old
+ new
@@ -36,10 +36,10 @@
end
private
def load_config_file file
- if file.to_s =~ /(?<ext>\.erb\.)/
+ if file.to_s =~ /(?<ext>\.erb)/
YAML.load(ERB.new(File.read(file)).result)
else
YAML.load_file(file)
end
end