replace remaining Postzord::Dispatcher.build(self, profile).post with call to the new method

This commit is contained in:
Jonne Haß 2013-03-31 16:52:18 +02:00
parent 74690088f2
commit 704113f896
2 changed files with 4 additions and 5 deletions

View file

@ -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 = {})

View file

@ -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]