summaryrefslogtreecommitdiff
path: root/app/models/identity.rb
diff options
context:
space:
mode:
authorelijah <elijah@riseup.net>2014-06-17 01:57:15 -0700
committerelijah <elijah@riseup.net>2014-06-17 01:57:15 -0700
commit280a46b5c4958cb183427028a8e66059856d46aa (patch)
tree77afce7a62f1c40e594659e96abca712aa1f8768 /app/models/identity.rb
parent9fa52ed80d71ec56ed5acf18dfd63bd03b201cc5 (diff)
if identity fails to be created, destroy the user. also, pass through identity errors to user and add identity class hook.
Diffstat (limited to 'app/models/identity.rb')
-rw-r--r--app/models/identity.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/models/identity.rb b/app/models/identity.rb
index 2f6241c..e7b5785 100644
--- a/app/models/identity.rb
+++ b/app/models/identity.rb
@@ -163,4 +163,5 @@ class Identity < CouchRest::Model::Base
end
end
+ ActiveSupport.run_load_hooks(:identity, self)
end