From 57bef99073fc2e3e30694bf1fb1a3c04a63bfcff Mon Sep 17 00:00:00 2001 From: kennyj Date: Sat, 7 Jul 2012 22:10:01 +0900 Subject: Use instance_accessor: false instead of instance_writer. --- guides/source/upgrading_ruby_on_rails.textile | 2 ++ 1 file changed, 2 insertions(+) (limited to 'guides/source/upgrading_ruby_on_rails.textile') 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 delete method in collection associations can now receive 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 serialized_attributes and _attr_readonly to class methods only. Now you shouldn't use instance methods, it's deprecated. You must change them, e.g. self.serialized_attributes to self.class.serialized_attributes. + h4(#active_model4_0). Active Model Rails 4.0 has changed how errors attach with the ActiveModel::Validations::ConfirmationValidator. Now when confirmation validations fail the error will be attached to :#{attribute}_confirmation instead of attribute. -- cgit v1.2.3