blob: 4fc8cd13a7b109a6140df85180a0384056a57520 (
plain) (
tree)
|
|
module ActiveSupport
if defined? ::Base64
Base64 = ::Base64
else
# Ruby 1.9 doesn't provide base64, so we wrap this here
module Base64
def self.encode64(data)
[data].pack("m")
end
def self.decode64(data)
data.unpack("m").first
end
end
end
end
|