aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/message_verifier.rb
diff options
context:
space:
mode:
authorVasiliy Ermolovich <younash@gmail.com>2011-12-27 22:46:44 +0300
committerVasiliy Ermolovich <younash@gmail.com>2011-12-27 22:46:44 +0300
commita19d0f5a66f17c356c5255c5d5930a73a25f627a (patch)
tree63d535e08e31774c417e960ab306431c144c0fb7 /activesupport/lib/active_support/message_verifier.rb
parent1a7701522d2308df801ba1f375cb0626386928a5 (diff)
downloadrails-a19d0f5a66f17c356c5255c5d5930a73a25f627a.tar.gz
rails-a19d0f5a66f17c356c5255c5d5930a73a25f627a.tar.bz2
rails-a19d0f5a66f17c356c5255c5d5930a73a25f627a.zip
deprecate Base64.encode64s from AS. Use Base64.strict_encode64 instead
Diffstat (limited to 'activesupport/lib/active_support/message_verifier.rb')
-rw-r--r--activesupport/lib/active_support/message_verifier.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/activesupport/lib/active_support/message_verifier.rb b/activesupport/lib/active_support/message_verifier.rb
index 30ac44f6fa..7cb5b1e82d 100644
--- a/activesupport/lib/active_support/message_verifier.rb
+++ b/activesupport/lib/active_support/message_verifier.rb
@@ -18,7 +18,7 @@ module ActiveSupport
# self.current_user = User.find(id)
# end
#
- # By default it uses Marshal to serialize the message. If you want to use another
+ # 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.:
#
@@ -44,7 +44,7 @@ module ActiveSupport
end
def generate(value)
- data = ActiveSupport::Base64.encode64s(@serializer.dump(value))
+ data = ActiveSupport::Base64.strict_encode64(@serializer.dump(value))
"#{data}--#{generate_digest(data)}"
end