class method
self.new
Ruby on Rails 7.1.6
Since v5.2.8.1Signature
self.new(content_path:, key_path:, env_key:, raise_if_missing_key:)
No documentation comment.
Parameters
-
content_pathkeyreq -
key_pathkeyreq -
env_keykeyreq -
raise_if_missing_keykeyreq
Source
# File activesupport/lib/active_support/encrypted_file.rb, line 42
def initialize(content_path:, key_path:, env_key:, raise_if_missing_key:)
@content_path = Pathname.new(content_path).yield_self { |path| path.symlink? ? path.realpath : path }
@key_path = Pathname.new(key_path)
@env_key, @raise_if_missing_key = env_key, raise_if_missing_key
end
Defined in activesupport/lib/active_support/encrypted_file.rb line 42
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveSupport::EncryptedFile