From c7360fe6cec203db649b2dfa9cdd6880ec44dfaa Mon Sep 17 00:00:00 2001 From: Raphael Sofaer Date: Fri, 5 Aug 2011 15:25:26 -0700 Subject: [PATCH] Document contact.sharing and receiving a little --- app/models/contact.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/models/contact.rb b/app/models/contact.rb index 486cb708f..46cbf8317 100644 --- a/app/models/contact.rb +++ b/app/models/contact.rb @@ -19,10 +19,12 @@ class Contact < ActiveRecord::Base validates_uniqueness_of :person_id, :scope => :user_id + # contact.sharing is true when contact.person is sharing with contact.user scope :sharing, lambda { where(:sharing => true) } + # contact.receiving is true when contact.user is sharing with contact.person scope :receiving, lambda { where(:receiving => true) }