Commit f112f81d authored by Douwe Maan's avatar Douwe Maan

Fix find_by_diff_refs

parent 50eae640
......@@ -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
......
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