diff options
author | Douwe Maan <douwe@gitlab.com> | 2015-04-21 15:09:15 +0200 |
---|---|---|
committer | Douwe Maan <douwe@gitlab.com> | 2015-04-24 12:29:36 +0200 |
commit | 84a1590252c63c710bceaa7a394799cdc5109505 (patch) | |
tree | 12d9b499acad48dc9420d095803705093d2b135d /lib/api/entities.rb | |
parent | b0ed2ff1a69df384a1cb9a184c0528bec1986827 (diff) | |
download | gitlab-ce-84a1590252c63c710bceaa7a394799cdc5109505.tar.gz |
Let commit model know about its project.
Diffstat (limited to 'lib/api/entities.rb')
-rw-r--r-- | lib/api/entities.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/api/entities.rb b/lib/api/entities.rb index 36332bc6514..79b4afa40ba 100644 --- a/lib/api/entities.rb +++ b/lib/api/entities.rb @@ -251,11 +251,11 @@ module API class Compare < Grape::Entity expose :commit, using: Entities::RepoCommit do |compare, options| - Commit.decorate(compare.commits).last + Commit.decorate(compare.commits, nil).last end expose :commits, using: Entities::RepoCommit do |compare, options| - Commit.decorate(compare.commits) + Commit.decorate(compare.commits, nil) end expose :diffs, using: Entities::RepoDiff do |compare, options| |