The deprecated ActiveSupport::Base64.decode64 method should call ::Base64.decode64 not ::Base64.encode64

This commit is contained in:
Jonathan Viney
2012-01-23 21:37:10 +13:00
parent ede01ce8b2
commit 44319eff4a

View File

@@ -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)