aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAldo "xoen" Giambelluca <xoen@xoen.org>2012-09-02 18:42:29 +0200
committerAldo "xoen" Giambelluca <xoen@xoen.org>2012-09-02 18:47:02 +0200
commitc38fe906c06993a641a9ec989e2bd9140b0c88c3 (patch)
treec2f5442b595ba5252ac5bb5f5a0f8237c99af498
parent70d2d2ced44941162e13cb66125482ebf9097ff4 (diff)
downloadrails-c38fe906c06993a641a9ec989e2bd9140b0c88c3.tar.gz
rails-c38fe906c06993a641a9ec989e2bd9140b0c88c3.tar.bz2
rails-c38fe906c06993a641a9ec989e2bd9140b0c88c3.zip
Underscore in _attr_readonly method name is back (Upgrading RoR guide) [ci skip]
-rw-r--r--guides/source/upgrading_ruby_on_rails.textile2
1 files changed, 1 insertions, 1 deletions
diff --git a/guides/source/upgrading_ruby_on_rails.textile b/guides/source/upgrading_ruby_on_rails.textile
index d66e6a155b..52c582ffbc 100644
--- a/guides/source/upgrading_ruby_on_rails.textile
+++ b/guides/source/upgrading_ruby_on_rails.textile
@@ -44,7 +44,7 @@ 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>.
+Rails 4.0 has changed <tt>serialized_attributes</tt> and <tt>&#95;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