Add featured tags API (#11778)

* Add featured tags API

* Remove show and update, change scope, fix code style
This commit is contained in:
Takeshi Umeda 2019-09-09 17:50:33 +09:00 committed by Eugen Rochko
parent a75009a65e
commit 9c9dcf580a
4 changed files with 75 additions and 0 deletions

View file

@ -0,0 +1,9 @@
# frozen_string_literal: true
class REST::FeaturedTagSerializer < ActiveModel::Serializer
attributes :id, :name, :statuses_count, :last_status_at
def id
object.id.to_s
end
end