Commit 2be1c4a

mo <mo.khan@gmail.com>
2017-10-22 22:18:43
specify assertion_attributes.
1 parent 1a56b61
Changed files (1)
app
models
app/models/user.rb
@@ -3,4 +3,12 @@ class User < ApplicationRecord
   after_initialize do
     self.uuid = SecureRandom.uuid unless self.uuid
   end
+
+  def assertion_attributes
+    {
+      id: uuid,
+      email: email,
+      created_at: created_at,
+    }
+  end
 end