diff options
author | Sean McGivern <sean@mcgivern.me.uk> | 2018-02-14 10:15:49 +0000 |
---|---|---|
committer | Mark Fletcher <mark@gitlab.com> | 2018-02-14 11:50:47 +0000 |
commit | f3af06526ad64e653183e4ffd0ea3bbdef5b1bda (patch) | |
tree | 20150d7ccea6d7fc61fed983e478e965bf0da332 /app/models/commit.rb | |
parent | ed6fd101ffe1230c9f4110950e5de2b8800ce9ba (diff) | |
download | gitlab-ce-10-5-stable-prepare-rc6.tar.gz |
Merge branch '42934-search-api-fix' into 'master'10-5-stable-prepare-rc6
Add information about projects when searching in wiki_blobs, blobs, commits scopes
Closes #42934
See merge request gitlab-org/gitlab-ce!17095
Diffstat (limited to 'app/models/commit.rb')
-rw-r--r-- | app/models/commit.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/models/commit.rb b/app/models/commit.rb index 2d2d89af030..8c960389652 100644 --- a/app/models/commit.rb +++ b/app/models/commit.rb @@ -116,6 +116,10 @@ class Commit raw.id end + def project_id + project.id + end + def ==(other) other.is_a?(self.class) && raw == other.raw end |