MS IZ receive url in the request and a slash in person

This commit is contained in:
maxwell 2010-08-10 15:56:34 -07:00
parent 432ce02a14
commit 89c54d1a63
2 changed files with 3 additions and 3 deletions

View file

@ -110,7 +110,7 @@ class Person
end
def receive_url
"#{self.url}receive/users/#{self.id}"
"#{self.url}receive/users/#{self.id}/"
end
protected

View file

@ -25,8 +25,8 @@ class Request
before_validation :clean_link
scope :for_user, lambda{ |user| where(:destination_url => user.url) }
scope :from_user, lambda{ |user| where(:destination_url.ne => user.url) }
scope :for_user, lambda{ |user| where(:destination_url => user.receive_url) }
scope :from_user, lambda{ |user| where(:destination_url.ne => user.receive_url) }
def self.instantiate(options = {})
person = options[:from]