Fixed receive_url problem
This commit is contained in:
parent
a0a7d28e6d
commit
e6c8cf20d3
1 changed files with 2 additions and 2 deletions
|
|
@ -26,8 +26,8 @@ class Request
|
||||||
validates_presence_of :destination_url, :callback_url
|
validates_presence_of :destination_url, :callback_url
|
||||||
before_validation :clean_link
|
before_validation :clean_link
|
||||||
|
|
||||||
scope :for_user, lambda{ |user| where(:destination_url => user.receive_url) }
|
scope :for_user, lambda{ |user| where(:destination_url => user.person.receive_url) }
|
||||||
scope :from_user, lambda{ |user| where(:destination_url.ne => user.receive_url) }
|
scope :from_user, lambda{ |user| where(:destination_url.ne => user.person.receive_url) }
|
||||||
|
|
||||||
def self.instantiate(options = {})
|
def self.instantiate(options = {})
|
||||||
person = options[:from]
|
person = options[:from]
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue