1
module ActiveSupport #:nodoc:
2
module CoreExtensions #:nodoc:
5
# Encodes the value as base64 without the newline breaks. This makes the base64 encoding readily usable as URL parameters
6
# or memcache keys without further processing.
8
# ActiveSupport::Base64.encode64s("Original unencoded string")
9
# # => "T3JpZ2luYWwgdW5lbmNvZGVkIHN0cmluZw=="
11
encode64(value).gsub(/\n/, '')