app/models/organizations/organization.rb
def primary_service_learning_contacts
    u = Unit.find_by_abbreviation("carlson")
    c = contacts.find(:all, :conditions => {:organization_contact_units => {:unit_id => u.id, :primary_contact => true}})
    c.empty? ? position_supervisor_contacts : c
  end
# Returns an array of OrganizationContacts that are primary service learning contacts for the organization. If there are no
# primary service learning contacts defined, then we just return all contacts with supervised positions for this organization.
Returns an array of OrganizationContacts that are primary service learning contacts for the organization. If there are no
primary service learning contacts defined, then we just return all contacts with supervised positions for this organization.
Returns an array of OrganizationContacts that are primary service learning contacts for the organization . If there are no primary service learning contacts defined then we just return all contacts with supervised positions for this organization .
def primary_service_learning_contacts
    u = Unit.find_by_abbreviation("carlson")
    c = contacts.find(:all, :conditions => {:organization_contact_units => {:unit_id => u.id, :primary_contact => true}})
    c.empty? ? position_supervisor_contacts : c
  end
def primary_service_learning_contacts u = Unit . find_by_abbreviation ( "carlson" ) c = contacts . find ( :all , :conditions => { :organization_contact_units => { :unit_id => u . id , :primary_contact => true } } ) c . empty? ? position_supervisor_contacts : c end
Returns an array of OrganizationContacts that are primary service learning contacts for the organization.
Returns an array of OrganizationContacts that are primary service learning contacts for the organization .