Methods

Instance Public methods

fetch(request)

📝 Source code
# File actionpack/lib/action_controller/metal/request_forgery_protection.rb, line 299
      def fetch(request)
        request.session[:_csrf_token]
      end
🔎 See on GitHub

reset(request)

📝 Source code
# File actionpack/lib/action_controller/metal/request_forgery_protection.rb, line 307
      def reset(request)
        request.session.delete(:_csrf_token)
      end
🔎 See on GitHub

store(request, csrf_token)

📝 Source code
# File actionpack/lib/action_controller/metal/request_forgery_protection.rb, line 303
      def store(request, csrf_token)
        request.session[:_csrf_token] = csrf_token
      end
🔎 See on GitHub