method

make_set_cookie_header

Importance_0
v5.0.0.1 - Show latest stable - 0 notes - Class: ActionDispatch::Cookies::CookieJar
make_set_cookie_header(header) 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 427
      def make_set_cookie_header(header)
        header = @set_cookies.inject(header) { |m, (k, v)|
          if write_cookie?(v)
            ::Rack::Utils.add_cookie_to_header(m, k, v)
          else
            m
          end
        }
        @delete_cookies.inject(header) { |m, (k, v)|
          ::Rack::Utils.add_remove_cookie_to_header(m, k, v)
        }
      end
Register or log in to add new notes.