Module: Configliere::EncryptedParam
- Defined in:
- lib/configliere/encrypted.rb
Instance Method Summary collapse
-
#resolve! ⇒ Object
decrypts any encrypted params then calls the next step in the resolve! chain.
-
#resolve_encrypted! ⇒ Object
import values, decrypting all params marked as encrypted.
Instance Method Details
#resolve! ⇒ Object
decrypts any encrypted params then calls the next step in the resolve! chain.
7 8 9 10 11 |
# File 'lib/configliere/encrypted.rb', line 7 def resolve! resolve_encrypted! super() self end |
#resolve_encrypted! ⇒ Object
import values, decrypting all params marked as encrypted
14 15 16 17 18 19 20 |
# File 'lib/configliere/encrypted.rb', line 14 def resolve_encrypted! remove_and_adopt_encrypt_pass_param_if_any! encrypted_params.each do |param| encrypted_val = deep_delete(*encrypted_key_path(param)) or next self[param] = self.decrypted(encrypted_val) end end |