From c8818dfcdf9e92364745000eefe46132a43f8700 Mon Sep 17 00:00:00 2001 From: Sean Griffin Date: Fri, 29 Jan 2016 09:28:24 -0700 Subject: Don't recommend using `ActiveRecord::Base[]` These methods are more expensive than the alternatives, and have strange semantics that are likely undesirable. --- activerecord/lib/active_record/base.rb | 3 --- 1 file changed, 3 deletions(-) (limited to 'activerecord') diff --git a/activerecord/lib/active_record/base.rb b/activerecord/lib/active_record/base.rb index 4a31a1aa84..fdffc3e6b9 100644 --- a/activerecord/lib/active_record/base.rb +++ b/activerecord/lib/active_record/base.rb @@ -132,9 +132,6 @@ module ActiveRecord #:nodoc: # end # end # - # You can alternatively use self[:attribute]=(value) and self[:attribute] - # or write_attribute(:attribute, value) and read_attribute(:attribute). - # # == Attribute query methods # # In addition to the basic accessors, query methods are also automatically available on the Active Record object. -- cgit v1.2.3