From 44319eff4aa6494e1eb383aa767948b20592da04 Mon Sep 17 00:00:00 2001 From: Jonathan Viney Date: Mon, 23 Jan 2012 21:37:10 +1300 Subject: The deprecated ActiveSupport::Base64.decode64 method should call ::Base64.decode64 not ::Base64.encode64 --- activesupport/lib/active_support/base64.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'activesupport/lib/active_support') diff --git a/activesupport/lib/active_support/base64.rb b/activesupport/lib/active_support/base64.rb index bb4c955eea..61a4af1a87 100644 --- a/activesupport/lib/active_support/base64.rb +++ b/activesupport/lib/active_support/base64.rb @@ -40,7 +40,7 @@ module ActiveSupport def self.decode64(value) ActiveSupport::Deprecation.warn "ActiveSupport::Base64.decode64 " \ "is deprecated. Use Base64.decode64 instead", caller - ::Base64.encode64(value) + ::Base64.decode64(value) end def self.encode64s(value) -- cgit v1.2.3