summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacob Vosmaer <jacob@gitlab.com>2017-05-09 14:44:15 +0200
committerJacob Vosmaer <jacob@gitlab.com>2017-05-09 14:44:15 +0200
commit3107f2e460d8db35f7ddd0cc5f68575233bfc133 (patch)
tree700d3a44ddde0af1dff3a692a7cbbc99df6a99d8
parentf1a14d685702bc8ea29791cda8440c3bab3c14a1 (diff)
downloadgitlab-ce-3107f2e460d8db35f7ddd0cc5f68575233bfc133.tar.gz
Use Rails 'delegate'
-rw-r--r--app/models/commit.rb4
1 files changed, 1 insertions, 3 deletions
diff --git a/app/models/commit.rb b/app/models/commit.rb
index e31ca64cee9..dea18bfedef 100644
--- a/app/models/commit.rb
+++ b/app/models/commit.rb
@@ -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)