summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorValery Sizov <vsv2711@gmail.com>2015-03-30 17:35:39 +0300
committerValery Sizov <vsv2711@gmail.com>2015-03-30 17:35:39 +0300
commit86a6e330d84c41c84015ced85d6f70fca6324224 (patch)
tree4ef032760b27a43d0b7b15dcd02e15621567563d
parent54e320ee63421ba42a15706a6b4892c502951d44 (diff)
downloadgitlab-ci-86a6e330d84c41c84015ced85d6f70fca6324224.tar.gz
GitLab project consistency
-rw-r--r--app/models/project.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/project.rb b/app/models/project.rb
index 0d4d2a0..c931c50 100644
--- a/app/models/project.rb
+++ b/app/models/project.rb
@@ -107,7 +107,7 @@ ls -la
end
def already_added?(project)
- where(gitlab_url: project.web_url).any?
+ where(gitlab_id: project.id).any?
end
def unassigned(runner)