instance method
read
Ruby on Rails 6.0.6
Since v5.2.8.1Signature
read()
No documentation comment.
Source
# File activesupport/lib/active_support/encrypted_file.rb, line 41
def read
if !key.nil? && content_path.exist?
decrypt content_path.binread
else
raise MissingContentError, content_path
end
end
Defined in activesupport/lib/active_support/encrypted_file.rb line 41
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveSupport::EncryptedFile