diff options
author | Robert Schilling <rschilling@student.tugraz.at> | 2018-02-09 14:30:27 +0100 |
---|---|---|
committer | Robert Schilling <rschilling@student.tugraz.at> | 2018-02-09 14:59:47 +0100 |
commit | 4cefb568d96c4868404caa14534a4329e2dd887f (patch) | |
tree | 11f77a4974d2599cc7f9655dffa5193e0100581b /lib/api/entities.rb | |
parent | 2bbf75f2114530f499bb1a917f000c7605d147f1 (diff) | |
download | gitlab-ce-4cefb568d96c4868404caa14534a4329e2dd887f.tar.gz |
Incorporate feedback
Diffstat (limited to 'lib/api/entities.rb')
-rw-r--r-- | lib/api/entities.rb | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/lib/api/entities.rb b/lib/api/entities.rb index e8c9ba6fce5..054c04bbd98 100644 --- a/lib/api/entities.rb +++ b/lib/api/entities.rb @@ -277,16 +277,12 @@ module API end class BasicRef < Grape::Entity - expose :name - end - - class SimpleRef < Grape::Entity expose :name do |ref, options| ref end end - class Branch < BasicRef + class Branch < Grape::Entity expose :name expose :commit, using: Entities::Commit do |repo_branch, options| @@ -855,8 +851,8 @@ module API expose :description end - class Tag < BasicRef - expose :message + class Tag < Grape::Entity + expose :name, :message expose :commit, using: Entities::Commit do |repo_tag, options| options[:project].repository.commit(repo_tag.dereferenced_target) |