lib/rswag/ui/middleware.rb in rswag-ui-2.5.0 vs lib/rswag/ui/middleware.rb in rswag-ui-2.5.1.rc1

- old
+ new

@@ -35,10 +35,10 @@ template = ERB.new(file.read) template.result(@config.get_binding) end def template_filename - @config.template_locations.find { |filename| File.exists?(filename) } + @config.template_locations.find { |filename| File.exist?(filename) } end end end end