app/models/events/event.rb
# Finds an EventInvitee object for this obj, if it exists, or nil.
Finds an EventInvitee object for this obj, if it exists, or nil.
Finds an EventInvitee object for this obj if it exists or nil .
def find_attendee(obj)
    return nil if obj.nil?
    klass = obj.class.respond_to?(:parent_class) ? obj.class.parent_class.to_s : obj.class.to_s
    attendees.find_by_invitable_type_and_invitable_id(klass, obj.id)
  end
def find_attendee ( obj ) return nil if obj . nil? klass = obj . class . respond_to? ( :parent_class ) ? obj . class . parent_class . to_s : obj . class . to_s attendees . find_by_invitable_type_and_invitable_id ( klass , obj . id ) end
Finds an EventInvitee object for this obj, if it exists, or nil.
Finds an EventInvitee object for this obj if it exists or nil .
obj