diff options
author | Robert Schilling <rschilling@student.tugraz.at> | 2019-01-06 20:56:02 +0300 |
---|---|---|
committer | Robert Schilling <rschilling@student.tugraz.at> | 2019-01-31 15:49:51 +0300 |
commit | a9fdc3118a7f9fb55b6f6b243f7bed2abe1ce48f (patch) | |
tree | 92dace891ba5dd38a0d979c8146bd61d32d71fe9 /lib/api/entities.rb | |
parent | 4e9aa7e2c042030cea190a1e57dee76de0e573ea (diff) |
Incorporate feedback from Robert
Diffstat (limited to 'lib/api/entities.rb')
-rw-r--r-- | lib/api/entities.rb | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/api/entities.rb b/lib/api/entities.rb index 25052a29c31..e361b419f16 100644 --- a/lib/api/entities.rb +++ b/lib/api/entities.rb @@ -1006,7 +1006,7 @@ module API expose :id, :name, :color, :description end - class GroupLabel < LabelBasic + class Label < LabelBasic expose :open_issues_count do |label, options| label.open_issues_count(options[:current_user]) end @@ -1024,7 +1024,10 @@ module API end end - class ProjectLabel < GroupLabel + class GroupLabel < Label + end + + class ProjectLabel < Label expose :priority do |label, options| label.priority(options[:project]) end |