method

decode64

v3.2.13 - Show latest stable - Class: Base64
decode64(data)
public

Decodes a base 64 encoded string to its original representation.

ActiveSupport::Base64.decode64("T3JpZ2luYWwgdW5lbmNvZGVkIHN0cmluZw==")
# => "Original unencoded string"