Skip to content

Commit 16882b8

Browse files
authored
Merge pull request rails#52633 from neilvcarvalho/nc-ar-encryption-docs
Fix Active Record Encryption documentation [ci skip]
2 parents 02bf1c3 + 780f8b5 commit 16882b8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

activerecord/lib/active_record/encryption/encryptor.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ def encrypt(clear_text, key_provider: default_key_provider, cipher_options: {})
5454
serialize_message build_encrypted_message(clear_text, key_provider: key_provider, cipher_options: cipher_options)
5555
end
5656

57-
# Decrypts a +clean_text+ and returns the result as clean text
57+
# Decrypts an +encrypted_text+ and returns the result as clean text
5858
#
5959
# === Options
6060
#

guides/source/active_record_encryption.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -388,7 +388,7 @@ end
388388
Both methods return `ActiveRecord::Encryption::Key` objects:
389389

390390
- `encryption_key` returns the key used for encrypting some content
391-
- `decryption keys` returns a list of potential keys for decrypting a given message
391+
- `decryption_keys` returns a list of potential keys for decrypting a given message
392392

393393
A key can include arbitrary tags that will be stored unencrypted with the message. You can use `ActiveRecord::Encryption::Message#headers` to examine those values when decrypting.
394394

0 commit comments

Comments
 (0)