expires=(t)
public
Sets the cookie expiration to the time t. The expiration time may
be a false value to disable expiration or a Time
or HTTP format time string to set the expiration date.
Show source
def expires=(t)
@expires = t && (t.is_a?(Time) ? t.httpdate : t.to_s)
end