diff --git a/app/models/user.rb b/app/models/user.rb index 4f356717b..8ddf4bd3e 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 d48b62fa2..94e2698f7 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]