diff --git a/app/models/user.rb b/app/models/user.rb index 4f356717b5606b8bfa01ecbc97b70f75c0f7ab9e..8ddf4bd3e18193906f894f3827363048a94b0096 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -347,13 +347,16 @@ class User < ActiveRecord::Base end if self.profile.update_attributes(params) - Postzord::Dispatcher.build(self, profile).post + deliver_profile_update true else false end end + def deliver_profile_update + Postzord::Dispatcher.build(self, profile).post + end ###Helpers############ def self.build(opts = {}) diff --git a/app/models/user/connecting.rb b/app/models/user/connecting.rb index d48b62fa2649c1142bbb168da3dd7bdda3d57d0a..94e2698f70936ed246e695086d71860f99dc4b4f 100644 --- a/app/models/user/connecting.rb +++ b/app/models/user/connecting.rb @@ -28,10 +28,6 @@ module User::Connecting contact end - def deliver_profile_update - Postzord::Dispatcher.build(self, profile).post - end - # This puts the last 100 public posts by the passed in contact into the user's stream. # @param [Contact] contact # @return [void]