Flowdock
method

[]=

Importance_0
v4.2.9 - Show latest stable - 0 notes - Class: ActionDispatch::Cookies::SignedCookieJar
[]=(name, options) public

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 463
      def []=(name, options)
        if options.is_a?(Hash)
          options.symbolize_keys!
          options[:value] = @verifier.generate(serialize(name, options[:value]))
        else
          options = { :value => @verifier.generate(serialize(name, options)) }
        end

        raise CookieOverflow if options[:value].bytesize > MAX_COOKIE_SIZE
        @parent_jar[name] = options
      end
Register or log in to add new notes.