lib/hashie/extensions/parsers/yaml_erb_parser.rb in hashie-3.4.4 vs lib/hashie/extensions/parsers/yaml_erb_parser.rb in hashie-3.4.5

- old
+ new

@@ -4,10 +4,10 @@ module Extensions module Parsers class YamlErbParser def initialize(file_path) @content = File.read(file_path) - @file_path = file_path + @file_path = file_path.is_a?(Pathname) ? file_path.to_s : file_path end def perform template = ERB.new(@content) template.filename = @file_path