Add featured tags API (#11778)
* Add featured tags API * Remove show and update, change scope, fix code style
This commit is contained in:
committed by
Eugen Rochko
parent
a75009a65e
commit
9c9dcf580a
9
app/serializers/rest/featured_tag_serializer.rb
Normal file
9
app/serializers/rest/featured_tag_serializer.rb
Normal 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
|
Reference in New Issue
Block a user