Skip to content

Commit 7a6ece3

Browse files
Merge pull request rails#41272 from kuldeepaggarwal/patch-2
Use string in the example[ci skip]
2 parents 2ab5729 + 3c975d8 commit 7a6ece3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

activesupport/lib/active_support/message_verifier.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,8 @@ module ActiveSupport
6868
# return the original value. But messages can be set to expire at a given
6969
# time with +:expires_in+ or +:expires_at+.
7070
#
71-
# @verifier.generate(parcel, expires_in: 1.month)
72-
# @verifier.generate(doowad, expires_at: Time.now.end_of_year)
71+
# @verifier.generate("parcel", expires_in: 1.month)
72+
# @verifier.generate("doowad", expires_at: Time.now.end_of_year)
7373
#
7474
# Then the messages can be verified and returned up to the expire time.
7575
# Thereafter, the +verified+ method returns +nil+ while +verify+ raises

0 commit comments

Comments
 (0)