Put send_contact_request_to back into the app
This commit is contained in:
parent
32a2264af5
commit
6aa7648787
1 changed files with 9 additions and 1 deletions
|
|
@ -5,7 +5,15 @@
|
|||
module Diaspora
|
||||
module UserModules
|
||||
module Connecting
|
||||
|
||||
def send_contact_request_to(desired_contact, aspect)
|
||||
request = Request.instantiate(:to => desired_contact,
|
||||
:from => self.person,
|
||||
:into => aspect)
|
||||
if request.save!
|
||||
dispatch_request request
|
||||
end
|
||||
request
|
||||
end
|
||||
def dispatch_request(request)
|
||||
self.pending_requests << request
|
||||
self.save
|
||||
|
|
|
|||
Loading…
Reference in a new issue