Commit 004d4c4e authored by Jacob Vosmaer's avatar Jacob Vosmaer

Use Rails 'delegate'

parent 6d885dd0
...@@ -335,9 +335,7 @@ class Commit ...@@ -335,9 +335,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)
......
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