Mordernize code base with __dir__ and require_relative

This commit is contained in:
Jean Boussier
2015-05-13 15:32:08 -04:00
parent 9e815ec594
commit b31df0fb3d
11 changed files with 24 additions and 26 deletions

View File

@@ -24,6 +24,6 @@ class LiquidServlet < WEBrick::HTTPServlet::AbstractServlet
end
def read_template(filename = @action)
File.read( File.dirname(__FILE__) + "/templates/#{filename}.liquid" )
File.read("#{__dir__}/templates/#{filename}.liquid")
end
end