instance method
urlsafe_encode64
Ruby on Rails 5.2.8.1
Since v5.2.8.1 Last seen in v5.2.8.1 PrivateSignature
urlsafe_encode64(bin, padding: true)
No documentation comment.
Parameters
-
binreq -
paddingkey = true
Source
# File actionpack/lib/action_controller/metal/request_forgery_protection.rb, line 481
def urlsafe_encode64(bin, padding: true)
str = strict_encode64(bin).tr("+/", "-_")
str = str.delete("=") unless padding
str
end
Defined in actionpack/lib/action_controller/metal/request_forgery_protection.rb line 481
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionController::RequestForgeryProtection