1
0
Fork 0
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:
Willem van Bergen 2011-09-15 13:23:08 -04:00
parent db040cdf8b
commit 2d30d4cb88

View file

@ -18,6 +18,11 @@ module ActiveSupport
# self.current_user = User.find(id)
# 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 InvalidSignature < StandardError; end