aboutsummaryrefslogtreecommitdiffstats
path: root/guides/source/upgrading_ruby_on_rails.md
diff options
context:
space:
mode:
authorVasily Polovnyov <vasily@polovnyov.ru>2014-07-25 23:44:05 +0400
committerVasily Polovnyov <vasily@polovnyov.ru>2014-07-26 22:42:50 +0400
commit9c8826bcd2238d73e904e9ddc2bc7a779716318b (patch)
treeacef2345a2fe4e7a96f254f3d38d41c7af2716b1 /guides/source/upgrading_ruby_on_rails.md
parent48cd7d337d7b2848e16cd38cc50f04fc04d85ff4 (diff)
downloadrails-9c8826bcd2238d73e904e9ddc2bc7a779716318b.tar.gz
rails-9c8826bcd2238d73e904e9ddc2bc7a779716318b.tar.bz2
rails-9c8826bcd2238d73e904e9ddc2bc7a779716318b.zip
[ci skip] Mention the change in nil handling for serialized attributes
in "Upgrading from Rails 3.2 to Rails 4.0"
Diffstat (limited to 'guides/source/upgrading_ruby_on_rails.md')
-rw-r--r--guides/source/upgrading_ruby_on_rails.md3
1 files changed, 3 insertions, 0 deletions
diff --git a/guides/source/upgrading_ruby_on_rails.md b/guides/source/upgrading_ruby_on_rails.md
index b3e4505fc0..2a7b6a10a9 100644
--- a/guides/source/upgrading_ruby_on_rails.md
+++ b/guides/source/upgrading_ruby_on_rails.md
@@ -592,6 +592,9 @@ Rails 4.0 no longer supports loading plugins from `vendor/plugins`. You must rep
* Rails 4.0 has changed `serialized_attributes` and `attr_readonly` to class methods only. You shouldn't use instance methods since it's now deprecated. You should change them to use class methods, e.g. `self.serialized_attributes` to `self.class.serialized_attributes`.
+* When using the default coder, assigning `nil` to a serialized attribute will save it
+to the database as `NULL` instead of passing the `nil` value through YAML (`"--- \n...\n"`).
+
* Rails 4.0 has removed `attr_accessible` and `attr_protected` feature in favor of Strong Parameters. You can use the [Protected Attributes gem](https://github.com/rails/protected_attributes) for a smooth upgrade path.
* If you are not using Protected Attributes, you can remove any options related to