replace remaining Postzord::Dispatcher.build(self, profile).post with call to the new method
This commit is contained in:
parent
74690088f2
commit
704113f896
2 changed files with 4 additions and 5 deletions
|
|
@ -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 = {})
|
||||
|
|
|
|||
|
|
@ -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]
|
||||
|
|
|
|||
Loading…
Reference in a new issue