method

[]=

Importance_0
v3.0.0 - Show latest stable - 0 notes - Class: ActionDispatch::Cookies::PermanentCookieJar
[]=(key, 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 206
      def []=(key, options)
        if options.is_a?(Hash)
          options.symbolize_keys!
        else
          options = { :value => options }
        end

        options[:expires] = 20.years.from_now
        @parent_jar[key] = options
      end
Register or log in to add new notes.