diff options
author | Douwe Maan <douwe@selenight.nl> | 2017-04-06 17:24:51 -0500 |
---|---|---|
committer | Douwe Maan <douwe@selenight.nl> | 2017-04-08 14:37:46 -0500 |
commit | f112f81d3d463a81c8b5e9225d5e9bb40e82abe8 (patch) | |
tree | 4583c3b7d2b75ca58df1e5143b07fe1e0d649ede | |
parent | 50eae640dbbfa42a42e8b6966bd739cfda3adabc (diff) | |
download | gitlab-ce-f112f81d3d463a81c8b5e9225d5e9bb40e82abe8.tar.gz |
Fix find_by_diff_refs
-rw-r--r-- | app/models/merge_request_diff.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/merge_request_diff.rb b/app/models/merge_request_diff.rb index 3a26b4ee401..0143dd83501 100644 --- a/app/models/merge_request_diff.rb +++ b/app/models/merge_request_diff.rb @@ -32,7 +32,7 @@ class MergeRequestDiff < ActiveRecord::Base after_create :save_git_content, unless: :importing? def self.find_by_diff_refs(diff_refs) - where(start_commit_sha: diff_refs.start_sha, head_commit_sha: diff_refs.head_sha, base_commit_sha: diff_refs.base_sha) + find_by(start_commit_sha: diff_refs.start_sha, head_commit_sha: diff_refs.head_sha, base_commit_sha: diff_refs.base_sha) end def self.select_without_diff |