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:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2014-09-25 13:19:26 +0400
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2014-09-25 13:19:26 +0400
commit3695ae185b7073f363335d41ba3d6317a63c0739 (patch)
treecbb9636658e3e823b80531b8e2837606f5c37b5d /app/models/commit.rb
parent13aec95264541b274d5ed9b828b44860cde93dec (diff)
Decorate commit parents
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Diffstat (limited to 'app/models/commit.rb')
-rw-r--r--app/models/commit.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/models/commit.rb b/app/models/commit.rb
index ff5392957ce..c8b2e0475ff 100644
--- a/app/models/commit.rb
+++ b/app/models/commit.rb
@@ -108,4 +108,8 @@ class Commit
super
end
+
+ def parents
+ @parents ||= Commit.decorate(super)
+ end
end