diff options
author | Sean McGivern <sean@mcgivern.me.uk> | 2018-02-14 10:15:49 +0000 |
---|---|---|
committer | Sean McGivern <sean@mcgivern.me.uk> | 2018-02-14 10:15:49 +0000 |
commit | 5e829934f95bcae25f5c09583b6febe6e2e646b6 (patch) | |
tree | 48b65e3a3125f23594d9d7bdf728f71aa7e224d5 /app/models/commit.rb | |
parent | e7595c10bc14cd32c456b9c6a94e227d41d6d09a (diff) | |
parent | b0b4ae1875529cd7ca786bd5eccd49be9a40a038 (diff) | |
download | gitlab-ce-5e829934f95bcae25f5c09583b6febe6e2e646b6.tar.gz |
Merge branch '42934-search-api-fix' into 'master'
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 |