about summary refs log tree commit diff
path: root/app/serializers/rest/account_serializer.rb
diff options
context:
space:
mode:
authorpluralcafe-docker <git@plural.cafe>2018-10-01 05:42:11 +0000
committerpluralcafe-docker <git@plural.cafe>2018-10-01 05:42:11 +0000
commitf9275cb762a311cbf298b3929552a153703c0726 (patch)
tree35797a6c1ae1c51d5e42ffe8b63eecbfb4336f56 /app/serializers/rest/account_serializer.rb
parent2aedb7e83cf7a2c1a7de69d2bc20808f20c10f8f (diff)
parent4e60a0d5433f5dfa4f71a452cc5c6ceb0f21ceab (diff)
Merge branch 'glitch'
Diffstat (limited to 'app/serializers/rest/account_serializer.rb')
-rw-r--r--app/serializers/rest/account_serializer.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/app/serializers/rest/account_serializer.rb b/app/serializers/rest/account_serializer.rb
index 3a724aa7c..d84b48afb 100644
--- a/app/serializers/rest/account_serializer.rb
+++ b/app/serializers/rest/account_serializer.rb
@@ -13,6 +13,10 @@ class REST::AccountSerializer < ActiveModel::Serializer
   class FieldSerializer < ActiveModel::Serializer
     attributes :name, :value
 
+    attribute :verified_at, if: :verifiable?
+
+    delegate :verifiable?, to: :object
+
     def value
       Formatter.instance.format_field(object.account, object.value)
     end