Method: ActiveSupport::Base64.decode64
- Defined in:
- lib/active_support/base64.rb
.decode64(data) ⇒ Object
Decodes a base 64 encoded string to its original representation.
ActiveSupport::Base64.decode64("T3JpZ2luYWwgdW5lbmNvZGVkIHN0cmluZw==")
# => "Original unencoded string"
28 29 30 |
# File 'lib/active_support/base64.rb', line 28 def self.decode64(data) data.unpack("m").first end |