Merge branch 'master' of github.com:middleman/middleman
This commit is contained in:
commit
39d3fa01ad
1 changed files with 2 additions and 2 deletions
|
@ -130,7 +130,7 @@ module Middleman
|
||||||
def server(&block)
|
def server(&block)
|
||||||
@@servercounter ||= 0
|
@@servercounter ||= 0
|
||||||
@@servercounter += 1
|
@@servercounter += 1
|
||||||
const_set("MiddlemanApplication#{@@servercounter}", Class.new(Middleman::Application))
|
const_set("MiddlemanApplication#{@@servercounter}", Class.new(Middleman::Application, &block))
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -142,7 +142,7 @@ module Middleman
|
||||||
#
|
#
|
||||||
# @return [Class]
|
# @return [Class]
|
||||||
def server(&block)
|
def server(&block)
|
||||||
::Middleman::Application.server
|
::Middleman::Application.server(&block)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue