Use Rails 'delegate'
This commit is contained in:
parent
f1a14d6857
commit
3107f2e460
|
@ -336,9 +336,7 @@ class Commit
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
def raw_deltas
|
delegate :deltas, to: :raw, prefix: :raw
|
||||||
raw.deltas
|
|
||||||
end
|
|
||||||
|
|
||||||
def diffs(diff_options = nil)
|
def diffs(diff_options = nil)
|
||||||
Gitlab::Diff::FileCollection::Commit.new(self, diff_options: diff_options)
|
Gitlab::Diff::FileCollection::Commit.new(self, diff_options: diff_options)
|
||||||
|
|
Loading…
Reference in New Issue