Navigation Menu

Skip to content

Commit

Permalink
Fix filter ID not being a string in REST API (#9303)
Browse files Browse the repository at this point in the history
  • Loading branch information
Gargron committed Nov 19, 2018
1 parent d6b9a62 commit 1d38c97
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/serializers/rest/filter_serializer.rb
Expand Up @@ -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

0 comments on commit 1d38c97

Please sign in to comment.