Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
df707134
Commit
df707134
authored
Jan 21, 2016
by
Gabriel Mazetto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed rubocop offenses
parent
673c1456
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
app/validators/host_validator.rb
app/validators/host_validator.rb
+1
-1
lib/gitlab/geo.rb
lib/gitlab/geo.rb
+1
-1
No files found.
app/validators/host_validator.rb
View file @
df707134
...
...
@@ -16,7 +16,7 @@ class HostValidator < ActiveModel::EachValidator
def
valid_host?
(
value
)
URI
.
parse
(
"http://
#{
value
}
"
).
host
==
value
rescue
URI
::
InvalidURIError
=>
e
rescue
URI
::
InvalidURIError
false
end
end
lib/gitlab/geo.rb
View file @
df707134
...
...
@@ -18,7 +18,7 @@ module Gitlab
self
.
enabled?
&&
!
self
.
current_node
.
primary?
end
def
self
.
geo_node?
(
host:
host
,
port:
port
)
def
self
.
geo_node?
(
host
:
,
port
:
)
GeoNode
.
where
(
host:
host
,
port:
port
).
exists?
end
end
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment