method

update_cookies_from_jar

Importance_0
v6.1.7.7 - Show latest stable - 0 notes - Class: ActionDispatch::Cookies::CookieJar
update_cookies_from_jar() 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 336
      def update_cookies_from_jar
        request_jar = @request.cookie_jar.instance_variable_get(:@cookies)
        set_cookies = request_jar.reject { |k, _| @delete_cookies.key?(k) || @set_cookies.key?(k) }

        @cookies.update set_cookies if set_cookies
      end
Register or log in to add new notes.