app/models/events/event_time.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_invitee(obj)
    return nil if obj.nil?
    klass = obj.class.respond_to?(:parent_class) ? obj.class.parent_class.to_s : obj.class.to_s
    invitees.find_by_invitable_type_and_invitable_id(klass, obj.id)
  end
def find_invitee ( obj ) return nil if obj . nil? klass = obj . class . respond_to? ( :parent_class ) ? obj . class . parent_class . to_s : obj . class . to_s invitees . 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