diff options
author | Douwe Maan <douwe@selenight.nl> | 2017-02-22 16:35:08 -0600 |
---|---|---|
committer | Douwe Maan <douwe@selenight.nl> | 2017-02-23 09:32:42 -0600 |
commit | b3ff48c9a1d61b22ab4040ebcdc64eeeb797ad44 (patch) | |
tree | e73552a1d8f27dd510e0bde264b6d24648fc2bfc /lib/gitlab | |
parent | 0a5b670a9392f7f8c02e83f1c2e3ed4d2d67cfde (diff) | |
download | gitlab-ce-b3ff48c9a1d61b22ab4040ebcdc64eeeb797ad44.tar.gz |
Move up delegate calls
Diffstat (limited to 'lib/gitlab')
-rw-r--r-- | lib/gitlab/git/commit.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/gitlab/git/commit.rb b/lib/gitlab/git/commit.rb index fd2b26c4a63..3a73697dc5d 100644 --- a/lib/gitlab/git/commit.rb +++ b/lib/gitlab/git/commit.rb @@ -14,6 +14,8 @@ module Gitlab attr_accessor *SERIALIZE_KEYS # rubocop:disable Lint/AmbiguousOperator + delegate :tree, to: :raw_commit + def ==(other) return false unless other.is_a?(Gitlab::Git::Commit) @@ -218,8 +220,6 @@ module Gitlab raw_commit.parents.map { |c| Gitlab::Git::Commit.new(c) } end - delegate :tree, to: :raw_commit - def stats Gitlab::Git::CommitStats.new(self) end |