Skip to content
Snippets Groups Projects
Commit 3107f2e4 authored by Jacob Vosmaer (GitLab)'s avatar Jacob Vosmaer (GitLab)
Browse files

Use Rails 'delegate'

parent f1a14d68
No related branches found
No related tags found
2 merge requests!12073Add RC2 changes to 9-3-stable,!11201Don't use DiffCollection for deltas
Loading
Loading
@@ -336,9 +336,7 @@ class Commit
end
end
 
def raw_deltas
raw.deltas
end
delegate :deltas, to: :raw, prefix: :raw
 
def diffs(diff_options = nil)
Gitlab::Diff::FileCollection::Commit.new(self, diff_options: diff_options)
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