1
0
Fork 0
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:
Jorge Manrubia 2021-03-18 18:01:26 +01:00 committed by Jorge Manrubia
parent c275b10a0e
commit fd3fbcc4eb

View file

@ -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).