Ruby 1.9 doesn’t provide base64, so we wrap this here
12 13 14
# File 'lib/active_support/base64.rb', line 12 def self.decode64(data) data.unpack("m").first end
8 9 10
# File 'lib/active_support/base64.rb', line 8 def self.encode64(data) [data].pack("m") end