Document contact.sharing and receiving a little

This commit is contained in:
Raphael Sofaer 2011-08-05 15:25:26 -07:00
parent 5eadc7d41c
commit c7360fe6ce

View file

@ -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)
}