mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Update guides/source/active_record_encryption.md
Co-authored-by: Connor Shea <connor.james.shea@gmail.com>
This commit is contained in:
parent
c275b10a0e
commit
fd3fbcc4eb
1 changed files with 2 additions and 2 deletions
|
@ -49,7 +49,7 @@ The library will transparently encrypt these attributes before saving them into
|
|||
|
||||
```ruby
|
||||
article = Article.create title: "Encrypt it all!"
|
||||
article.title # => "Encrypt it all"
|
||||
article.title # => "Encrypt it all!"
|
||||
```
|
||||
|
||||
But, under the hood, the executed SQL would look like this:
|
||||
|
@ -417,4 +417,4 @@ ActiveRecord::Encryption.protecting_encrypted_data do
|
|||
...
|
||||
end
|
||||
```
|
||||
This can be handy if you want to protect encrypted data while still letting someone run arbitrary code against it (e.g: in a Rails console).
|
||||
This can be handy if you want to protect encrypted data while still letting someone run arbitrary code against it (e.g: in a Rails console).
|
||||
|
|
Loading…
Reference in a new issue