Merge branch 'master' of github.com:diaspora/diaspora_rails

This commit is contained in:
Raphael 2010-07-06 12:38:46 -07:00
commit d46e82d004
3 changed files with 7 additions and 1 deletions

View file

@ -26,7 +26,7 @@ class FriendRequest
end
def send_off
push_to [self.recipient]
push_to_recipient self.recipient
end
end

View file

@ -66,6 +66,11 @@ module Diaspora
end
end
def push_to_recipient(recipient)
if self.sender_id == User.first.id
push_to( [recipient] )
end
end
def prep_webhook
"<post>#{self.to_xml.to_s}</post>"

View file

@ -24,6 +24,7 @@ namespace :db do
User.delete_all
Friend.delete_all
Profile.delete_all
FriendRequest.delete_all
end
desc 'Purge and seed the current RAILS_ENV database using information from db/seeds.rb'