lib/s3repo/templates.rb in s3repo-2.0.3 vs lib/s3repo/templates.rb in s3repo-3.0.1

- old
+ new

@@ -23,15 +23,15 @@ ) end def templates @templates ||= template_files.map do |x| - [File.basename(x), ERB.new(File.read(x), nil, '-')] + [File.basename(x), ERB.new(File.read(x), trim_mode: '-')] end end def template_files - @template_files ||= Dir.glob(template_path + '/*') + @template_files ||= Dir.glob("#{template_path}/*") end def template_path @template_path ||= @options[:template_dir] || raise('No template dir') end