Commit dbcf4144ee4da9670efa26f2297d11291823d949

Authored by Dmitriy Zaporozhets
1 parent 6aead799

use simple decorate on single commits

Showing 1 changed file with 2 additions and 2 deletions   Show diff stats
app/controllers/merge_requests_controller.rb
@@ -94,12 +94,12 @@ class MergeRequestsController < ProjectResourceController @@ -94,12 +94,12 @@ class MergeRequestsController < ProjectResourceController
94 94
95 def branch_from 95 def branch_from
96 @commit = @repository.commit(params[:ref]) 96 @commit = @repository.commit(params[:ref])
97 - @commit = CommitDecorator.decorate_collection(@commit) 97 + @commit = CommitDecorator.decorate(@commit)
98 end 98 end
99 99
100 def branch_to 100 def branch_to
101 @commit = @repository.commit(params[:ref]) 101 @commit = @repository.commit(params[:ref])
102 - @commit = CommitDecorator.decorate_collection(@commit) 102 + @commit = CommitDecorator.decorate(@commit)
103 end 103 end
104 104
105 def ci_status 105 def ci_status