Method: MergeRequestDiff#diffs_collection

Defined in:
app/models/merge_request_diff.rb

#diffs_collection(diff_options = nil) ⇒ Object

Should always return the DB persisted diffs collection (e.g. Gitlab::Diff::FileCollection::MergeRequestDiff. It’s useful when trying to invalidate old caches through FileCollection::MergeRequestDiff#clear_cache!



586
587
588
# File 'app/models/merge_request_diff.rb', line 586

def diffs_collection(diff_options = nil)
  Gitlab::Diff::FileCollection::MergeRequestDiff.new(self, diff_options: diff_options)
end