method

check_for_overflow!

rails latest stable - Class: ActionDispatch::Cookies::SerializedCookieJars
check_for_overflow!(name, options)
private

No documentation available.

# File actionpack/lib/action_dispatch/middleware/cookies.rb, line 595
        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