class CarrierWave::Secure::DecryptedFile

Decrypts the file on reading, using decorator pattern.

Public Instance Methods

read() click to toggle source
# File lib/carrierwave/secure/decrypted_file.rb, line 9
def read
  @read ||= cipher.decrypt(@decorated.read.clone).force_encoding('UTF-8')
end