mirror of
https://github.com/middleman/middleman.git
synced 2022-11-09 12:20:27 -05:00
Name the server class so it isn't so confusing when debugging
This commit is contained in:
parent
dc0249b8b9
commit
481467a5ac
1 changed files with 3 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue