From 70d2d2ced44941162e13cb66125482ebf9097ff4 Mon Sep 17 00:00:00 2001 From: "Aldo \"xoen\" Giambelluca" Date: Sun, 2 Sep 2012 13:59:45 +0200 Subject: Fixed validation issue in Upgrading Ruby on Rails guide [ci skip] In chapter 2.4 there was an underscore at the start of the attr_readonly method name, this underscore was interpreted as the opening of the tag but it wasn't closed. Worst, the underscore in self.class.serialized_attributes (end of paragraph) was interpreted as the closing of the tag and not as the name of a method. --- guides/source/upgrading_ruby_on_rails.textile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'guides/source') diff --git a/guides/source/upgrading_ruby_on_rails.textile b/guides/source/upgrading_ruby_on_rails.textile index cdf7306264..d66e6a155b 100644 --- a/guides/source/upgrading_ruby_on_rails.textile +++ b/guides/source/upgrading_ruby_on_rails.textile @@ -44,7 +44,7 @@ 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. +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 -- cgit v1.2.3