Merge pull request #15240 from chancancode/fix_attribute_methods

Fixed serialization for records with an attribute named `format`.
Conflicts:
	activerecord/CHANGELOG.md