diff options
author | tiagonbotelho <tiagonbotelho@hotmail.com> | 2016-07-08 09:47:09 +0100 |
---|---|---|
committer | tiagonbotelho <tiagonbotelho@hotmail.com> | 2016-07-08 09:47:09 +0100 |
commit | 1b111b83bf79a0f2e27c2a445a4757d399b36ca0 (patch) | |
tree | 8874ab751b98287d2a74dbb8373959c2b96da462 /lib/api/entities.rb | |
parent | 4c43ba8b1924fcb877a52bd622cd93074ae73584 (diff) | |
download | gitlab-ce-1b111b83bf79a0f2e27c2a445a4757d399b36ca0.tar.gz |
changes the usage of simpleprojectdetails to already implemented basicprojectsdetails and changes the url to a more reader friendly format
Diffstat (limited to 'lib/api/entities.rb')
-rw-r--r-- | lib/api/entities.rb | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/lib/api/entities.rb b/lib/api/entities.rb index 0f26a1f00a2..aae1840821e 100644 --- a/lib/api/entities.rb +++ b/lib/api/entities.rb @@ -79,12 +79,6 @@ module API expose :public_builds end - class SimpleProject < Grape::Entity - expose :id - expose :name, :name_with_namespace - expose :http_url_to_repo - end - class ProjectMember < UserBasic expose :access_level do |user, options| options[:project].project_members.find_by(user_id: user.id).access_level @@ -334,7 +328,7 @@ module API end end - class SimpleProjectWithAccess < SimpleProject + class BasicProjectWithAccess < BasicProjectDetails expose :permissions do expose :project_access, using: Entities::ProjectAccess do |project, options| project.project_members.find_by(user_id: options[:user].id) |