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:
parent
5bc33e8a2c
commit
c8818dfcdf
1 changed files with 0 additions and 3 deletions
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue