app/models/events/event_time.rb
# Creates a new EventInvitee record for this event time, or updates an existing record if one already exists for this +obj+. 
# Pass the object and an optional hash of extra attributes for the new EventInvitee object. Returns the new EventInvitee object.
Creates a new EventInvitee record for this event time, or updates an existing record if one already exists for this +obj+.
Pass the object and an optional hash of extra attributes for the new EventInvitee object. Returns the new EventInvitee object.
Creates a new EventInvitee record for this event time or updates an existing record if one already exists for this + obj + . Pass the object and an optional hash of extra attributes for the new EventInvitee object . Returns the new EventInvitee object .
def invite!(obj, invitee_attributes = {})
    return nil if obj.nil?
    invitee = find_invitee(obj)
    if invitee.nil?
      invitee_attributes.merge!(:invitable => obj)
      invitee = invitees.create(invitee_attributes)
    else
      invitee.update_attributes(invitee_attributes)
    end
    invitee
  end
def invite! ( obj , invitee_attributes = { } ) return nil if obj . nil? invitee = find_invitee ( obj ) if invitee . nil? invitee_attributes . merge! ( :invitable => obj ) invitee = invitees . create ( invitee_attributes ) else invitee . update_attributes ( invitee_attributes ) end invitee end
Creates a new EventInvitee record for this event time, or updates an existing record if one already exists for this +obj+.
Creates a new EventInvitee record for this event time or updates an existing record if one already exists for this + obj + .
obj
invitee_attributes