Small fix in routes and host option.
This commit is contained in:
parent
77092a88c8
commit
5d4d140a45
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue