9 lines
168 B
Ruby
9 lines
168 B
Ruby
|
class Subdomain
|
||
|
|
||
|
def matches?(request)
|
||
|
o = Organization.where(domain: request.subdomain).first
|
||
|
request.path_parameters[:id] = o.id if o
|
||
|
!o.nil?
|
||
|
end
|
||
|
|
||
|
end
|