about summary refs log tree commit diff
path: root/app/serializers/rest/application_serializer.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/serializers/rest/application_serializer.rb')
-rw-r--r--app/serializers/rest/application_serializer.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/serializers/rest/application_serializer.rb b/app/serializers/rest/application_serializer.rb
index 868a62f1e..a8945f66e 100644
--- a/app/serializers/rest/application_serializer.rb
+++ b/app/serializers/rest/application_serializer.rb
@@ -4,6 +4,10 @@ class REST::ApplicationSerializer < ActiveModel::Serializer
   attributes :id, :name, :website, :redirect_uri,
              :client_id, :client_secret
 
+  def id
+    object.id.to_s
+  end
+
   def client_id
     object.uid
   end