MS IZ receive url in the request and a slash in person
This commit is contained in:
parent
432ce02a14
commit
89c54d1a63
2 changed files with 3 additions and 3 deletions
|
|
@ -110,7 +110,7 @@ class Person
|
||||||
end
|
end
|
||||||
|
|
||||||
def receive_url
|
def receive_url
|
||||||
"#{self.url}receive/users/#{self.id}"
|
"#{self.url}receive/users/#{self.id}/"
|
||||||
end
|
end
|
||||||
|
|
||||||
protected
|
protected
|
||||||
|
|
|
||||||
|
|
@ -25,8 +25,8 @@ class Request
|
||||||
|
|
||||||
before_validation :clean_link
|
before_validation :clean_link
|
||||||
|
|
||||||
scope :for_user, lambda{ |user| where(:destination_url => user.url) }
|
scope :for_user, lambda{ |user| where(:destination_url => user.receive_url) }
|
||||||
scope :from_user, lambda{ |user| where(:destination_url.ne => user.url) }
|
scope :from_user, lambda{ |user| where(:destination_url.ne => user.receive_url) }
|
||||||
|
|
||||||
def self.instantiate(options = {})
|
def self.instantiate(options = {})
|
||||||
person = options[:from]
|
person = options[:from]
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue