diff options
author | Jacob Vosmaer <jacob@gitlab.com> | 2017-05-09 14:44:15 +0200 |
---|---|---|
committer | Jacob Vosmaer <jacob@gitlab.com> | 2017-05-09 14:44:15 +0200 |
commit | 3107f2e460d8db35f7ddd0cc5f68575233bfc133 (patch) | |
tree | 700d3a44ddde0af1dff3a692a7cbbc99df6a99d8 | |
parent | f1a14d685702bc8ea29791cda8440c3bab3c14a1 (diff) | |
download | gitlab-ce-3107f2e460d8db35f7ddd0cc5f68575233bfc133.tar.gz |
Use Rails 'delegate'
-rw-r--r-- | app/models/commit.rb | 4 |
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) |