summaryrefslogtreecommitdiff
path: root/app/models/commit.rb
diff options
context:
space:
mode:
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)