Fix filter ID not being a string in REST API (#9303)

This commit is contained in:
Eugen Rochko 2018-11-19 10:37:57 +01:00 committed by GitHub
parent 62c0e112ea
commit 7c9a655933

View file

@ -3,4 +3,8 @@
class REST::FilterSerializer < ActiveModel::Serializer
attributes :id, :phrase, :context, :whole_word, :expires_at,
:irreversible
def id
object.id.to_s
end
end