fedibird-fe/app/serializers/rest/keyword_subscribes_serializer.rb

10 lines
252 B
Ruby
Raw Normal View History

2019-08-30 08:02:41 +00:00
# frozen_string_literal: true
class REST::KeywordSubscribesSerializer < ActiveModel::Serializer
attributes :id, :name, :keyword, :exclude_keyword, :ignorecase, :regexp, :ignore_block, :disabled, :exclude_home
def id
object.id.to_s
end
end