module Turbolinks::Cookies - turbolinks-2.3.0 Documentation

# module Turbolinks::Cookies

Sets a request_method cookie containing the request method of the current request. The Turbolinks script will not initialize if this cookie is set to anything other than GET.

### Private Instance Methods

set_request_method_cookie() click to toggle source

    # File lib/turbolinks/cookies.rb, line 6
    def set_request_method_cookie
      cookies[:request_method] = request.request_method
    end