The routes that this host has.
# File lib/mongrel2/config/host.rb, line 23
one_to_many :routes
The server this host belongs to.
# File lib/mongrel2/config/host.rb, line 27
many_to_one :server
Clean up the host's routes when it's destroyed.
# File lib/mongrel2/config/host.rb, line 35
def before_destroy
self.routes.each( &:destroy )
end