Small fix in routes and host option.

This commit is contained in:
Davide D'Agostino 2010-04-26 18:13:31 +02:00 committed by Ryan Tomayko
parent 77092a88c8
commit 5d4d140a45
1 changed files with 1 additions and 1 deletions

View File

@ -861,7 +861,7 @@ module Sinatra
private
def route(verb, path, options={}, &block)
# Because of self.options.host
host_name(options.delete(:bind)) if options.key?(:host)
host_name(options.delete(:host)) if options.key?(:host)
options.each { |option, args| send(option, *args) }
block, pattern, keys = compile! verb, path, block