Fix inconsistency with changed attributes when overriding AR attribute reader
#28661

bogdanvlviv wants to merge bogdanvlviv:fix-dirty-attributes-if-override-attr_accessor into rails:master

We do not currently have an analysis of these two commits