summaryrefslogtreecommitdiff
path: root/lib/api/repositories.rb
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2014-07-02 15:09:06 +0300
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2014-07-02 15:09:06 +0300
commit767bd7808153d3ec5ead766dcbd655523afd5324 (patch)
treee2f0178b48904a726ef26e2ca3bccd5e810d6d23 /lib/api/repositories.rb
parent5a88873e5cac26edf65dcfae8d449beb4ed865bb (diff)
downloadgitlab-ce-767bd7808153d3ec5ead766dcbd655523afd5324.tar.gz
Use Contributor class instead of hash
Diffstat (limited to 'lib/api/repositories.rb')
-rw-r--r--lib/api/repositories.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/api/repositories.rb b/lib/api/repositories.rb
index 241036729b5..d091fa4f035 100644
--- a/lib/api/repositories.rb
+++ b/lib/api/repositories.rb
@@ -160,7 +160,7 @@ module API
get ':id/repository/contributors' do
authorize! :download_code, user_project
- user_project.repository.contributors
+ present user_project.repository.contributors, with: Entities::Contributor
end
end
end