mirror of
https://github.com/mastodon/mastodon.git
synced 2024-10-21 10:05:39 +09:00
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
|