Skip to Content Skip to Search

class ActiveSupport::Cache::Coder::StringDeserializer

Public class methods

Source code GitHub
# File activesupport/lib/active_support/cache/coder.rb, line 87
def initialize(encoding)
  @encoding = encoding
end

Public instance methods

Source code GitHub
# File activesupport/lib/active_support/cache/coder.rb, line 91
def load(payload)
  payload.force_encoding(@encoding)
end

Definition files