Name the server class so it isn't so confusing when debugging

This commit is contained in:
Ben Hollis 2012-03-04 17:43:12 -08:00
parent dc0249b8b9
commit 481467a5ac

View file

@ -235,7 +235,9 @@ module Middleman
#
# @return [Class]
def server(&block)
Class.new(Middleman::Base)
@@servercounter ||= 1
@@servercounter += 1
const_set("MiddlemanBase#{@@servercounter}", Class.new(Middleman::Base))
end
# Creates a new Rack::Server