method
[]=
Ruby on Rails latest stable (v7.1.3.2)
-
0 notes -
Class: ActionDispatch::Cookies::PermanentCookieJar
[]=(name, options)
public
Hide source
# File actionpack/lib/action_dispatch/middleware/cookies.rb, line 383 def []=(name, options) if options.is_a?(Hash) options.symbolize_keys! else options = { :value => options } end options[:expires] = 20.years.from_now @parent_jar[name] = options end