Don't recommend using `ActiveRecord::Base[]`

These methods are more expensive than the alternatives, and have strange semantics that are likely undesirable.
This commit is contained in:
Sean Griffin 2016-01-29 09:28:24 -07:00
parent 5bc33e8a2c
commit c8818dfcdf
1 changed files with 0 additions and 3 deletions

View File

@ -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.