diff options
author | Robert Schilling <rschilling@student.tugraz.at> | 2018-02-13 20:22:37 +0100 |
---|---|---|
committer | Robert Schilling <rschilling@student.tugraz.at> | 2018-02-14 10:16:34 +0100 |
commit | a724f7e35f9f8ed9692b0f3f4d6c8a62632cdec4 (patch) | |
tree | 07c821347130287119ad58dd4fe07e1a0552370b /lib/api/entities.rb | |
parent | 922d156a5e0412a12662df94e03479f7ed015f7b (diff) | |
download | gitlab-ce-a724f7e35f9f8ed9692b0f3f4d6c8a62632cdec4.tar.gz |
Refactor commits/refs API to use hash and add pagination headers
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 c7a817877f0..c8cda85b170 100644 --- a/lib/api/entities.rb +++ b/lib/api/entities.rb @@ -277,13 +277,7 @@ module API end class BasicRef < Grape::Entity - expose :branch_name, if: lambda { |ref, options| ref[1] } do |ref, options| - ref[0] - end - - expose :tag_name, if: lambda { |ref, options| !ref[1] } do |ref, options| - ref[0] - end + expose :type, :name end class Branch < Grape::Entity |