diff options
author | Willem van Bergen <willem@vanbergen.org> | 2011-09-15 13:23:08 -0400 |
---|---|---|
committer | Willem van Bergen <willem@vanbergen.org> | 2011-09-15 13:23:08 -0400 |
commit | 2d30d4cb888e2da7c1f0a8828b467d2e21c90cfa (patch) | |
tree | 5d12c8e7fb9e3c7037a2ebe873bf46882ba1a3db /activesupport/lib | |
parent | db040cdf8ba832123bae68764189bbcb569d473a (diff) | |
download | rails-2d30d4cb888e2da7c1f0a8828b467d2e21c90cfa.tar.gz rails-2d30d4cb888e2da7c1f0a8828b467d2e21c90cfa.tar.bz2 rails-2d30d4cb888e2da7c1f0a8828b467d2e21c90cfa.zip |
Add some documentation for the new serializer property of MessageVerifier and MessageEncryptor.
Diffstat (limited to 'activesupport/lib')
-rw-r--r-- | activesupport/lib/active_support/message_verifier.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/activesupport/lib/active_support/message_verifier.rb b/activesupport/lib/active_support/message_verifier.rb index b3a087a596..0181070479 100644 --- a/activesupport/lib/active_support/message_verifier.rb +++ b/activesupport/lib/active_support/message_verifier.rb @@ -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 |