app/models/events/event_invitee.rb
def application_for_offering
    return invitable if invitable.is_a?(ApplicationForOffering)
    return invitable.app if invitable.is_a?(ApplicationGroupMember)
    return nil if event.offering.nil?
    ApplicationForOffering.find_by_person_id_and_offering_id(person.id, event.offering.id)
  end
# Tries to find an ApplicationForOffering object for this invitee. If this object's invitable is an ApplicationForOffering,
# then return that. Otherwise, look through the applications for this event's offering (if it has one).
Tries to find an ApplicationForOffering object for this invitee. If this object's invitable is an ApplicationForOffering,
then return that. Otherwise, look through the applications for this event's offering (if it has one).
Tries to find an ApplicationForOffering object for this invitee . If this object ' s invitable is an ApplicationForOffering then return that . Otherwise look through the applications for this event ' s offering ( if it has one ) .
def application_for_offering
    return invitable if invitable.is_a?(ApplicationForOffering)
    return invitable.app if invitable.is_a?(ApplicationGroupMember)
    return nil if event.offering.nil?
    ApplicationForOffering.find_by_person_id_and_offering_id(person.id, event.offering.id)
  end
def application_for_offering return invitable if invitable . is_a? ( ApplicationForOffering ) return invitable . app if invitable . is_a? ( ApplicationGroupMember ) return nil if event . offering . nil? ApplicationForOffering . find_by_person_id_and_offering_id ( person . id , event . offering . id ) end
Tries to find an ApplicationForOffering object for this invitee.
Tries to find an ApplicationForOffering object for this invitee .