summaryrefslogtreecommitdiff
path: root/app/serializers
diff options
context:
space:
mode:
authorAlexis Reigel <mail@koffeinfrei.org>2017-09-28 13:57:08 +0200
committerAlexis Reigel <mail@koffeinfrei.org>2018-06-05 16:20:21 +0200
commit67fe0a17d87a7a5380b41e04ef23212d5da637ba (patch)
tree2be846ca693640f73058ebd0dd1b39b06e3f2666 /app/serializers
parent40ffa8401b96dda5f67ea699dbcca0ff64263810 (diff)
downloadgitlab-ce-67fe0a17d87a7a5380b41e04ef23212d5da637ba.tar.gz
call Gitlab::Favicon.status in serializer
this ways we can keep the `lib/gitlab/ci/status/*` classes to return the bare favicon name as it was before. also the favicon uploader versions are now have the same names as the stock favicons (+ `favicon_` prefix), which makes working with the status names easier.
Diffstat (limited to 'app/serializers')
-rw-r--r--app/serializers/status_entity.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/serializers/status_entity.rb b/app/serializers/status_entity.rb
index f4d0a33d466..2f3d4b80565 100644
--- a/app/serializers/status_entity.rb
+++ b/app/serializers/status_entity.rb
@@ -7,7 +7,7 @@ class StatusEntity < Grape::Entity
expose :details_path
expose :favicon do |status|
- ActionController::Base.helpers.image_path(status.favicon)
+ Gitlab::Favicon.status(status.favicon)
end
expose :action, if: -> (status, _) { status.has_action? } do