class Mongrel2::Config::Host
Associations
↑ topPublic Instance Methods
routes()
click to toggle source
The routes that this host has.
# File lib/mongrel2/config/host.rb, line 23 one_to_many :routes
server()
click to toggle source
The server this host belongs to.
# File lib/mongrel2/config/host.rb, line 27 many_to_one :server
DSL mixin
↑ topHooks
↑ topPublic Instance Methods
before_destroy()
click to toggle source
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