Class: Groundskeeper::Middleware::Subdomain

Inherits:
Groundskeeper::Middleware show all
Defined in:
lib/groundskeeper/middleware/subdomain.rb

Constant Summary collapse

DEPTH_KEY =
:depth
DEPTH_DEFAULT =
-3
PARSE_KEY =
:parse
PARSE_DEFAULT =
->(fqdn, depth) { fqdn.split(".")[depth] }
RACK_HOST_KEY =
"HTTP_HOST"

Constants inherited from Groundskeeper::Middleware

DEFAULT_KEY, MODEL_KEY, NAMESPACE_KEY, QUERY_DEFAULT, QUERY_KEY, TENANT_KEY

Method Summary

Methods inherited from Groundskeeper::Middleware

#call, #initialize

Constructor Details

This class inherits a constructor from Groundskeeper::Middleware