Name the server class so it isn't so confusing when debugging
This commit is contained in:
parent
dc0249b8b9
commit
481467a5ac
|
@ -235,7 +235,9 @@ module Middleman
|
||||||
#
|
#
|
||||||
# @return [Class]
|
# @return [Class]
|
||||||
def server(&block)
|
def server(&block)
|
||||||
Class.new(Middleman::Base)
|
@@servercounter ||= 1
|
||||||
|
@@servercounter += 1
|
||||||
|
const_set("MiddlemanBase#{@@servercounter}", Class.new(Middleman::Base))
|
||||||
end
|
end
|
||||||
|
|
||||||
# Creates a new Rack::Server
|
# Creates a new Rack::Server
|
||||||
|
|
Loading…
Reference in a new issue