lib/sinatra/subdomain.rb in sinatra-subdomain-0.1.0 vs lib/sinatra/subdomain.rb in sinatra-subdomain-0.1.1

- old
+ new

@@ -5,10 +5,10 @@ module Subdomain module Helpers def subdomain uri = URI.parse("http://#{request.env["HTTP_HOST"]}") parts = uri.host.split(".") - parts.pop(options.tld_size + 1) + parts.pop(settings.tld_size + 1) parts.first end end def subdomain(expected_subdomain = nil, &block)