From 481467a5ac2910b1d122846c30f99db9d3f78389 Mon Sep 17 00:00:00 2001 From: Ben Hollis Date: Sun, 4 Mar 2012 17:43:12 -0800 Subject: [PATCH] Name the server class so it isn't so confusing when debugging --- middleman-core/lib/middleman-core.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/middleman-core/lib/middleman-core.rb b/middleman-core/lib/middleman-core.rb index 02504181..365be09a 100755 --- a/middleman-core/lib/middleman-core.rb +++ b/middleman-core/lib/middleman-core.rb @@ -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