method

check_for_overflow!

Importance_0
v7.1.3.2 - Show latest stable - 0 notes - Class: SerializedCookieJars
check_for_overflow!(name, options) private

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# 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
Register or log in to add new notes.