app/models/events/event_time.rb
# Returns true if the object already has an EventInvitee object in this EventTime's list of invitees and +attending+ is +true+.
Returns true if the object already has an EventInvitee object in this EventTime's list of invitees and +attending+ is +true+.
Returns true if the object already has an EventInvitee object in this EventTime ' s list of invitees and + attending + is + true + .
def attending?(obj)
    return false if obj.nil?
    invitee = find_invitee(obj)
    invitee.nil? ? false : invitee.attending?
  end
def attending? ( obj ) return false if obj . nil? invitee = find_invitee ( obj ) invitee . nil? ? false : invitee . attending? end
Returns true if the object already has an EventInvitee object in this EventTime's list of invitees and +attending+ is +true+.
Returns true if the object already has an EventInvitee object in this EventTime ' s list of invitees and + attending + is + true + .
obj