Exception: Mongoid::Encrypted::Encryptor::MissingKeyError
- Inherits:
-
RuntimeError
- Object
- RuntimeError
- Mongoid::Encrypted::Encryptor::MissingKeyError
- Defined in:
- lib/mongoid/encrypted/encryptor.rb
Instance Method Summary collapse
-
#initialize(key_path:, env_key:) ⇒ MissingKeyError
constructor
A new instance of MissingKeyError.
Constructor Details
#initialize(key_path:, env_key:) ⇒ MissingKeyError
Returns a new instance of MissingKeyError.
5 6 7 8 9 |
# File 'lib/mongoid/encrypted/encryptor.rb', line 5 def initialize(key_path:, env_key:) super \ "Missing encryption key to decrypt file with. " + "Ask your team for your master key and write it to #{key_path} or put it in the ENV['#{env_key}']." end |