Skip to content

Commit 2a5acb0

Browse files
Remove duplicate :key_provider option doc [ci-skip]
1 parent 62c8867 commit 2a5acb0

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

activerecord/lib/active_record/encryption/encryptable_record.rb

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,10 @@ module EncryptableRecord
1818
#
1919
# === Options
2020
#
21-
# * <tt>:key_provider</tt> - Configure a +KeyProvider+ for serving the keys to encrypt and
22-
# decrypt this attribute. If not provided, it will default to +ActiveRecord::Encryption.key_provider+.
21+
# * <tt>:key_provider</tt> - A key provider to provide encryption and decryption keys. Defaults to
22+
# +ActiveRecord::Encryption.key_provider+.
2323
# * <tt>:key</tt> - A password to derive the key from. It's a shorthand for a +:key_provider+ that
2424
# serves derivated keys. Both options can't be used at the same time.
25-
# * <tt>:key_provider</tt> - Set a +:key_provider+ to provide encryption and decryption keys. If not
26-
# provided, it will default to the key provider set with +config.key_provider+.
2725
# * <tt>:deterministic</tt> - By default, encryption is not deterministic. It will use a random
2826
# initialization vector for each encryption operation. This means that encrypting the same content
2927
# with the same key twice will generate different ciphertexts. When set to +true+, it will generate the

0 commit comments

Comments
 (0)