From 704113f8964f4ee8d03b9fd37d9aa8efde0ce04f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jonne=20Ha=C3=9F?= Date: Sun, 31 Mar 2013 16:52:18 +0200 Subject: [PATCH] replace remaining Postzord::Dispatcher.build(self, profile).post with call to the new method --- app/models/user.rb | 5 ++++- app/models/user/connecting.rb | 4 ---- 2 files changed, 4 insertions(+), 5 deletions(-) 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]