mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
[] and read_attribute are not aliases [ci skip]
The `#[]` method *used to be* an alias of `#read_attribute`, but since Rails 4
(10f6f90d9d
), it will raise an exception for
missing attributes. Saying that it is an alias is confusing.
This commit is contained in:
parent
661ed303f4
commit
e4701e613c
1 changed files with 0 additions and 2 deletions
|
@ -334,8 +334,6 @@ module ActiveRecord
|
|||
#
|
||||
# Note: +:id+ is always present.
|
||||
#
|
||||
# Alias for the #read_attribute method.
|
||||
#
|
||||
# class Person < ActiveRecord::Base
|
||||
# belongs_to :organization
|
||||
# end
|
||||
|
|
Loading…
Reference in a new issue