From d6e1d56e05b22957732bb3bba0c3a6ba5c8d8116 Mon Sep 17 00:00:00 2001 From: gem-JaspriyaArora Date: Thu, 21 Aug 2025 16:24:36 -0400 Subject: [PATCH 1/4] error code --- lib/apartment/elevators/first_subdomain.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/apartment/elevators/first_subdomain.rb b/lib/apartment/elevators/first_subdomain.rb index 71d0d8d1..0795a70e 100644 --- a/lib/apartment/elevators/first_subdomain.rb +++ b/lib/apartment/elevators/first_subdomain.rb @@ -8,8 +8,7 @@ module Elevators # - example1.domain.com => example1 # - example2.something.domain.com => example2 class FirstSubdomain < Subdomain - - def parse_tenant_name(request) + def parse_tenant_name(reque) super.split('.')[0] unless super.nil? end end From a4c6c52bf2ec9fe9dac8887fa37089a5d409363a Mon Sep 17 00:00:00 2001 From: gem-JaspriyaArora Date: Thu, 21 Aug 2025 17:12:44 -0400 Subject: [PATCH 2/4] error code --- lib/apartment/elevators/first_subdomain.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/apartment/elevators/first_subdomain.rb b/lib/apartment/elevators/first_subdomain.rb index 0795a70e..052d28c9 100644 --- a/lib/apartment/elevators/first_subdomain.rb +++ b/lib/apartment/elevators/first_subdomain.rb @@ -8,7 +8,7 @@ module Elevators # - example1.domain.com => example1 # - example2.something.domain.com => example2 class FirstSubdomain < Subdomain - def parse_tenant_name(reque) + def parse_tenant_name(request) super.split('.')[0] unless super.nil? end end From 16f938015e7bc478a08bfac3a10375da0f7bf16a Mon Sep 17 00:00:00 2001 From: gem-JaspriyaArora Date: Thu, 21 Aug 2025 17:18:05 -0400 Subject: [PATCH 3/4] error code --- lib/apartment/elevators/first_subdomain.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/apartment/elevators/first_subdomain.rb b/lib/apartment/elevators/first_subdomain.rb index 052d28c9..968e3c3d 100644 --- a/lib/apartment/elevators/first_subdomain.rb +++ b/lib/apartment/elevators/first_subdomain.rb @@ -8,7 +8,7 @@ module Elevators # - example1.domain.com => example1 # - example2.something.domain.com => example2 class FirstSubdomain < Subdomain - def parse_tenant_name(request) + def parse_tenant_name(reques) super.split('.')[0] unless super.nil? end end From bd7d8890f0f8ee00036226e2957574a10bba17a6 Mon Sep 17 00:00:00 2001 From: gem-JaspriyaArora Date: Thu, 21 Aug 2025 17:48:23 -0400 Subject: [PATCH 4/4] error code --- lib/apartment/elevators/first_subdomain.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/apartment/elevators/first_subdomain.rb b/lib/apartment/elevators/first_subdomain.rb index 968e3c3d..08b140ad 100644 --- a/lib/apartment/elevators/first_subdomain.rb +++ b/lib/apartment/elevators/first_subdomain.rb @@ -9,7 +9,7 @@ module Elevators # - example2.something.domain.com => example2 class FirstSubdomain < Subdomain def parse_tenant_name(reques) - super.split('.')[0] unless super.nil? + super.spli('.')[0] unless super.nil? end end end