Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacob Vosmaer <jacob@gitlab.com>2017-05-09 15:44:15 +0300
committerJacob Vosmaer <jacob@gitlab.com>2017-05-09 15:44:15 +0300
commit3107f2e460d8db35f7ddd0cc5f68575233bfc133 (patch)
tree700d3a44ddde0af1dff3a692a7cbbc99df6a99d8 /app/models/commit.rb
parentf1a14d685702bc8ea29791cda8440c3bab3c14a1 (diff)
Use Rails 'delegate'
Diffstat (limited to 'app/models/commit.rb')
-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)