Expand path on sinatra root

This commit is contained in:
Samuel Cochran 2012-10-29 10:26:14 +08:00
parent 3f4abe1d32
commit 76cef09b4e

View File

@ -10,7 +10,7 @@ class Sinatra::Request
end
class MailCatcher::Web < Sinatra::Base
set :root, Pathname.new(__FILE__).dirname.parent.parent
set :root, File.expand_path("#{__FILE__}/../../..")
set :haml, :format => :html5
get '/' do