1
0
Fork 0
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:
Benjamin Quorning 2016-05-24 13:16:40 +02:00
parent 661ed303f4
commit e4701e613c

View file

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