aboutsummaryrefslogtreecommitdiffstats
path: root/guides/source/upgrading_ruby_on_rails.textile
diff options
context:
space:
mode:
authorkennyj <kennyj@gmail.com>2012-07-07 22:10:01 +0900
committerkennyj <kennyj@gmail.com>2012-08-21 23:40:28 +0900
commit57bef99073fc2e3e30694bf1fb1a3c04a63bfcff (patch)
tree74443d08eb3e02752d39a1d19de00d85d8bf0b66 /guides/source/upgrading_ruby_on_rails.textile
parent55d943c5670997ce64744c1ae3cd0426f5517b10 (diff)
downloadrails-57bef99073fc2e3e30694bf1fb1a3c04a63bfcff.tar.gz
rails-57bef99073fc2e3e30694bf1fb1a3c04a63bfcff.tar.bz2
rails-57bef99073fc2e3e30694bf1fb1a3c04a63bfcff.zip
Use instance_accessor: false instead of instance_writer.
Diffstat (limited to 'guides/source/upgrading_ruby_on_rails.textile')
-rw-r--r--guides/source/upgrading_ruby_on_rails.textile2
1 files changed, 2 insertions, 0 deletions
diff --git a/guides/source/upgrading_ruby_on_rails.textile b/guides/source/upgrading_ruby_on_rails.textile
index 5024bc4c37..680beb5dfe 100644
--- a/guides/source/upgrading_ruby_on_rails.textile
+++ b/guides/source/upgrading_ruby_on_rails.textile
@@ -44,6 +44,8 @@ The <tt>delete</tt> method in collection associations can now receive <tt>Fixnum
Rails 4.0 has changed how orders get stacked in +ActiveRecord::Relation+. In previous versions of rails new order was applied after previous defined order. But this is no long true. Check "ActiveRecord Query guide":active_record_querying.html#ordering for more information.
+Rails 4.0 has changed <tt>serialized_attributes</tt> and <tt>_attr_readonly</tt> to class methods only. Now you shouldn't use instance methods, it's deprecated. You must change them, e.g. <tt>self.serialized_attributes</tt> to <tt>self.class.serialized_attributes</tt>.
+
h4(#active_model4_0). Active Model
Rails 4.0 has changed how errors attach with the <tt>ActiveModel::Validations::ConfirmationValidator</tt>. Now when confirmation validations fail the error will be attached to <tt>:#{attribute}_confirmation</tt> instead of <tt>attribute</tt>.