15 lines
226 B
Ruby
15 lines
226 B
Ruby
# frozen_string_literal: true
|
|
|
|
class REST::TagSerializer < ActiveModel::Serializer
|
|
include RoutingHelper
|
|
|
|
attributes :name, :url, :history
|
|
|
|
def url
|
|
tag_url(object)
|
|
end
|
|
|
|
def name
|
|
object.display_name
|
|
end
|
|
end
|