aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport
diff options
context:
space:
mode:
authorWillem van Bergen <willem@vanbergen.org>2011-09-15 13:23:08 -0400
committerWillem van Bergen <willem@vanbergen.org>2011-09-15 13:23:08 -0400
commit2d30d4cb888e2da7c1f0a8828b467d2e21c90cfa (patch)
tree5d12c8e7fb9e3c7037a2ebe873bf46882ba1a3db /activesupport
parentdb040cdf8ba832123bae68764189bbcb569d473a (diff)
downloadrails-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')
-rw-r--r--activesupport/lib/active_support/message_verifier.rb5
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