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, 4 insertions, 0 deletions
diff --git a/app/models/commit.rb b/app/models/commit.rb
index 96c8577f90e..e3363350997 100644
--- a/app/models/commit.rb
+++ b/app/models/commit.rb
@@ -8,6 +8,10 @@ class Commit
#
DIFF_SAFE_SIZE = 100
+ def self.decorate(commits)
+ commits.map { |c| self.new(c) }
+ end
+
attr_accessor :raw
def initialize(raw_commit)