Skip to content

Commit 1003e97

Browse files
Tweak MessageVerifier :urlsafe option doc [ci-skip]
Follow-up to rails#45425. This fixes a few typos, and slightly adjusts the wording.
1 parent 21acc7b commit 1003e97

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

activesupport/lib/active_support/message_verifier.rb

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -108,13 +108,13 @@ module ActiveSupport
108108
#
109109
# verifier.rotate(old_secret, digest: "SHA256", serializer: Marshal)
110110
#
111-
# === Generating urlsafe strings
111+
# === Generating URL safe strings
112112
#
113-
# By default MessageVerifier generates RFC 4648 complient strings which are
114-
# not urlsafe. In other words, they can contain "+" and "/". If you want to
115-
# generate urlsafe strings (complie with Base 64 Encoding with URL and
116-
# Filename Safe Alphabet in RFC 4648), you can pass urlsafe upon
117-
# initialization:
113+
# By default MessageVerifier generates RFC 4648 compliant strings which are
114+
# not URL safe. In other words, they can contain "+" and "/". If you want to
115+
# generate URL safe strings (in compliance with "Base 64 Encoding with URL and
116+
# Filename Safe Alphabet" in RFC 4648), you can pass <tt>urlsafe: true</tt>
117+
# to the constructor:
118118
#
119119
# @verifier = ActiveSupport::MessageVerifier.new("secret", urlsafe: true)
120120
# @verifier.generate("signed message") #=> "urlsafe_string"

0 commit comments

Comments
 (0)