Skip to content
Snippets Groups Projects
Commit f112f81d authored by Douwe Maan's avatar Douwe Maan
Browse files

Fix find_by_diff_refs

parent 50eae640
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -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
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment