Skip to content

Commit 38ab865

Browse files
committed
Fix attribute-specific encryption options
The Active Record encryption guides have two sections that mention model-specific options: "Model-specific Key Providers" and "Model-specific Keys". Those options aren't really model-specific, but attribute-specific. This commit changes the text from "model" to "attribute", making the documentation more precise.
1 parent 75fa743 commit 38ab865

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
@@ -343,19 +343,19 @@ Both methods return `ActiveRecord::Encryption::Key` objects:
343343

344344
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.
345345

346-
### Model-specific Key Providers
346+
### Attribute-specific Key Providers
347347

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

350350
```ruby
351351
class Article < ApplicationRecord
352352
encrypts :summary, key_provider: ArticleKeyProvider.new
353353
end
354354
```
355355

356-
### Model-specific Keys
356+
### Attribute-specific Keys
357357

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

360360
```ruby
361361
class Article < ApplicationRecord

0 commit comments

Comments
 (0)