class method
self.encode64s
Ruby on Rails 3.1.12
Since v3.0.20 Last seen in v3.2.22.5Signature
self.encode64s(value)
Encodes the value as base64 without the newline breaks. This makes the base64 encoding readily usable as URL parameters or memcache keys without further processing.
ActiveSupport::Base64.encode64s("Original unencoded string") # => "T3JpZ2luYWwgdW5lbmNvZGVkIHN0cmluZw=="
Parameters
-
valuereq
Source
# File activesupport/lib/active_support/base64.rb, line 39
def Base64.encode64s(value)
encode64(value).gsub(/\n/, '')
end
Defined in activesupport/lib/active_support/base64.rb line 39
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveSupport::Base64