Sign in
EDIT
/
kanjai
·
Commits
GitLab
Go to dashboard
Project
Activity
Files
Commits
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Labels
Wiki
Network
Download as
Email Patches
Plain Diff
Browse Files
Commit
056456aecc633204569f8986e2863c2aef79fffb
Authored by
Karpikau Andrei
2020-08-20 18:40:57 +0300
1 parent
cd5eaa26
check domain as global variable
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
1 deletions
app/controllers/kanjai/site_controller.rb
lib/kanjai/version.rb
app/controllers/kanjai/site_controller.rb
View file @
056456a
...
...
@@ -41,6 +41,7 @@ module Kanjai
41
41
if
request
.
subdomain
.
to_s
.
present?
42
42
domain_title
=
"
#{
request
.
subdomain
}
.
#{
domain_title
}
"
43
43
end
44
+
p
domain_title
44
45
45
46
domain
=
Domain
.
where
(
title:
domain_title
).
first
46
47
...
...
lib/kanjai/version.rb
View file @
056456a
1
1
module
Kanjai
2
-
VERSION
=
"0.0.21
4
"
2
+
VERSION
=
"0.0.21
5
"
3
3
end
...
...