mirror of https://github.com/mastodon/mastodon
12 lines
184 B
Ruby
12 lines
184 B
Ruby
![]() |
# frozen_string_literal: true
|
||
|
|
||
|
class REST::TagSerializer < ActiveModel::Serializer
|
||
|
include RoutingHelper
|
||
|
|
||
|
attributes :name, :url, :history
|
||
|
|
||
|
def url
|
||
|
tag_url(object)
|
||
|
end
|
||
|
end
|