aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord
diff options
context:
space:
mode:
authorSean Griffin <sean@seantheprogrammer.com>2016-01-29 09:28:24 -0700
committerSean Griffin <sean@seantheprogrammer.com>2016-01-29 09:28:24 -0700
commitc8818dfcdf9e92364745000eefe46132a43f8700 (patch)
tree67c817808ba82a73b9620b1c31bdc1602cb38a87 /activerecord
parent5bc33e8a2cd3340a6c4e0687e514d82f1b5ea472 (diff)
downloadrails-c8818dfcdf9e92364745000eefe46132a43f8700.tar.gz
rails-c8818dfcdf9e92364745000eefe46132a43f8700.tar.bz2
rails-c8818dfcdf9e92364745000eefe46132a43f8700.zip
Don't recommend using `ActiveRecord::Base[]`
These methods are more expensive than the alternatives, and have strange semantics that are likely undesirable.
Diffstat (limited to 'activerecord')
-rw-r--r--activerecord/lib/active_record/base.rb3
1 files changed, 0 insertions, 3 deletions
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 <tt>self[:attribute]=(value)</tt> and <tt>self[:attribute]</tt>
- # or <tt>write_attribute(:attribute, value)</tt> and <tt>read_attribute(:attribute)</tt>.
- #
# == Attribute query methods
#
# In addition to the basic accessors, query methods are also automatically available on the Active Record object.