module ActionDispatch::Cookies::SerializedCookieJars
def check_for_overflow!(name, options)
def check_for_overflow!(name, options) if options[:value].bytesize > MAX_COOKIE_SIZE raise CookieOverflow, "#{name} cookie overflowed with size #{options[:value].bytesize} bytes" end end