This project is archived and is in readonly mode.

#724 ✓wontfix
Hampton Catlin

Deprecating ActiveRecord::Base#attributes=

Reported by Hampton Catlin | July 30th, 2008 @ 12:18 AM | in 2.x

This is an extremely ugly method that is not ruby like enough and its been around since the beginning.

We discussed this in #ruby-contrib and everyone agreed. So, I branched and fixed it.

The new method that merges in attributes is ActiveRecord::Base#merge_attributes instead of ActiveRecord::Base#attributes= which is misleading because it looks like assignment.

I have added a deprecation warning to the use of ActiveRecord::Base#attributes=

There is a pull request on GitHub for this patch.

Comments and changes to this ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href=""></a>

People watching this ticket