Skip to content

Commit b3347c3

Browse files
authored
Merge pull request rails#52668 from neilvcarvalho/nc-per-attribute-encryption-docs
Fix attribute-specific encryption options [ci skip]
2 parents e5a5858 + 38ab865 commit b3347c3

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

guides/source/active_record_encryption.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -392,19 +392,19 @@ Both methods return `ActiveRecord::Encryption::Key` objects:
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

395-
### Model-specific Key Providers
395+
### Attribute-specific Key Providers
396396

397-
You can configure a key provider on a per-class basis with the `:key_provider` option:
397+
You can configure a key provider on a per-attribute basis with the `:key_provider` option:
398398

399399
```ruby
400400
class Article < ApplicationRecord
401401
encrypts :summary, key_provider: ArticleKeyProvider.new
402402
end
403403
```
404404

405-
### Model-specific Keys
405+
### Attribute-specific Keys
406406

407-
You can configure a given key on a per-class basis with the `:key` option:
407+
You can configure a given key on a per-attribute basis with the `:key` option:
408408

409409
```ruby
410410
class Article < ApplicationRecord

0 commit comments

Comments
 (0)