summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Wintermeyer <stefan.wintermeyer@amooma.de>2013-01-07 12:25:52 +0100
committerStefan Wintermeyer <stefan.wintermeyer@amooma.de>2013-01-07 12:25:52 +0100
commitb66cf13cab7bbef0ae4244aabc023fede67e36fb (patch)
treec47f74f1b5b64293f4bd86b8c594a60523e0ebb8
parentbc99518a1650963153c164b5eaeb11033dcf8bac (diff)
A user.destroy triggers a phone.resync.
-rw-r--r--app/models/user.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/models/user.rb b/app/models/user.rb
index 9b29dc5..b902b99 100644
--- a/app/models/user.rb
+++ b/app/models/user.rb
@@ -203,6 +203,7 @@ class User < ActiveRecord::Base
else
phone.destroy
end
+ phone.resync
end
end