parent
d935532f8d
commit
c298adda7c
@ -0,0 +1,9 @@
|
|||||||
|
class Subdomain
|
||||||
|
|
||||||
|
def matches?(request)
|
||||||
|
o = Organization.where(domain: request.subdomain).first
|
||||||
|
request.path_parameters[:id] = o.id if o
|
||||||
|
!o.nil?
|
||||||
|
end
|
||||||
|
|
||||||
|
end
|
Loading…
Reference in new issue