about summary refs log tree commit diff
path: root/app/serializers/rest
diff options
context:
space:
mode:
authorEugen Rochko <eugen@zeonfederated.com>2017-11-25 00:35:37 +0100
committerGitHub <noreply@github.com>2017-11-25 00:35:37 +0100
commit31ac5f0e00b003f060788d7a335f4ec33dd77d9a (patch)
tree9f26e03603eb5542a8a50de667f18da7dd7ad087 /app/serializers/rest
parent269a445c0b24de37972cf35b26f9362c2b62122c (diff)
Display list column (#5750)
Diffstat (limited to 'app/serializers/rest')
-rw-r--r--app/serializers/rest/list_serializer.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/serializers/rest/list_serializer.rb b/app/serializers/rest/list_serializer.rb
index c0150888e..977da7439 100644
--- a/app/serializers/rest/list_serializer.rb
+++ b/app/serializers/rest/list_serializer.rb
@@ -2,4 +2,8 @@
 
 class REST::ListSerializer < ActiveModel::Serializer
   attributes :id, :title
+
+  def id
+    object.id.to_s
+  end
 end