diff options
author | Vasily Polovnyov <vasily@polovnyov.ru> | 2014-07-26 22:34:56 +0400 |
---|---|---|
committer | Vasily Polovnyov <vasily@polovnyov.ru> | 2014-07-26 22:47:24 +0400 |
commit | 4bfd0cef5bc0e6c052f8683ac0510845b7748a72 (patch) | |
tree | 3bcbb764c83ef90fa7a211197b01c1991a031be0 /guides | |
parent | 9c8826bcd2238d73e904e9ddc2bc7a779716318b (diff) | |
download | rails-4bfd0cef5bc0e6c052f8683ac0510845b7748a72.tar.gz rails-4bfd0cef5bc0e6c052f8683ac0510845b7748a72.tar.bz2 rails-4bfd0cef5bc0e6c052f8683ac0510845b7748a72.zip |
[ci skip] Clarify the "Serialized Attributes" section
Mention that the change in nil handling for serialized attributes
affects custom coders.
Diffstat (limited to 'guides')
-rw-r--r-- | guides/source/upgrading_ruby_on_rails.md | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/guides/source/upgrading_ruby_on_rails.md b/guides/source/upgrading_ruby_on_rails.md index 2a7b6a10a9..0b8db49ef8 100644 --- a/guides/source/upgrading_ruby_on_rails.md +++ b/guides/source/upgrading_ruby_on_rails.md @@ -54,7 +54,8 @@ NOTE: This section is a work in progress. ### Serialized attributes -When assigning `nil` to a serialized attribute, it will be saved to the database +When using a custom coder (e.g. `serialize :metadata, JSON`), +assigning `nil` to a serialized attribute will save it to the database as `NULL` instead of passing the `nil` value through the coder (e.g. `"null"` when using the `JSON` coder). |