about summary refs log tree commit diff
path: root/app/serializers/rest/filter_serializer.rb
blob: 57205630bbbf84fe8765807cd64471e148dc8918 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
# frozen_string_literal: true

class REST::FilterSerializer < ActiveModel::Serializer
  attributes :id, :phrase, :context, :whole_word, :expires_at,
             :irreversible

  def id
    object.id.to_s
  end
end