BigW Consortium Gitlab

Commit f112f81d by Douwe Maan

Fix find_by_diff_refs

parent 50eae640
...@@ -32,7 +32,7 @@ class MergeRequestDiff < ActiveRecord::Base ...@@ -32,7 +32,7 @@ class MergeRequestDiff < ActiveRecord::Base
after_create :save_git_content, unless: :importing? after_create :save_git_content, unless: :importing?
def self.find_by_diff_refs(diff_refs) 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 end
def self.select_without_diff def self.select_without_diff
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment