1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

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

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.