Commit 9559cb1ccd9b22d801f59cb272f00f7188631470

Authored by Karpikau Andrei
1 parent 80db7b0a

add domain

@@ -42,7 +42,7 @@ module Kanjai @@ -42,7 +42,7 @@ module Kanjai
42 domain_title = "#{request.subdomain}.#{domain_title}" 42 domain_title = "#{request.subdomain}.#{domain_title}"
43 end 43 end
44 44
45 - $domain = Domain.where(title: request.domain).first 45 + $domain = Domain.where(title: domain_title).first
46 46
47 if $domain.nil? 47 if $domain.nil?
48 render plain: 'Domain Not Exist' and return 48 render plain: 'Domain Not Exist' and return