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
parent ecc58c0f23
commit fa02f878fc

View File

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