Flowdock
method

encode_csrf_token

Importance_0
v6.1.3.1 - Show latest stable - 0 notes - Class: ActionController::RequestForgeryProtection
encode_csrf_token(csrf_token) 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_controller/metal/request_forgery_protection.rb, line 478
      def encode_csrf_token(csrf_token) # :nodoc:
        if urlsafe_csrf_tokens
          Base64.urlsafe_encode64(csrf_token, padding: false)
        else
          Base64.strict_encode64(csrf_token)
        end
      end
Register or log in to add new notes.