mirror of
https://github.com/lunaisnotaboy/mastodon.git
synced 2024-09-12 13:16:55 +00: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
|