This project is archived and is in readonly mode.

#6609 ✓wontfix
Juan Maiz (aka João Milho or John Corn)

update_attribute is annoying, what about a bang method?

Reported by Juan Maiz (aka João Milho or John Corn) | March 23rd, 2011 @ 02:17 PM

I'm tired of writing update_attribute. Hope it's not just me. I propose having a bang method in attributes:

@foo = Foo.find(10)! 'baz' // will update bar to baz

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>