mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Add some documentation for the new serializer property of MessageVerifier and MessageEncryptor.
This commit is contained in:
parent
db040cdf8b
commit
2d30d4cb88
1 changed files with 5 additions and 0 deletions
|
@ -18,6 +18,11 @@ module ActiveSupport
|
||||||
# self.current_user = User.find(id)
|
# self.current_user = User.find(id)
|
||||||
# end
|
# end
|
||||||
#
|
#
|
||||||
|
# By default it uses Marshal to serialize the message. If you want to use another
|
||||||
|
# serialization method, you can set the serializer attribute to something that responds
|
||||||
|
# to dump and load, e.g.:
|
||||||
|
#
|
||||||
|
# @verifier.serializer = YAML
|
||||||
class MessageVerifier
|
class MessageVerifier
|
||||||
class InvalidSignature < StandardError; end
|
class InvalidSignature < StandardError; end
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue