Juan Maiz (aka João Milho or John Corn)
Programming Motherfucker Senior Practitioner · Not a member
Juan Maiz (aka João Milho or John Corn)'s latest activity
Wednesday, March 23 2011
6609
update_attribute is annoying, what about a bang method?
was updated
in Ruby on Rails
-
Juan Maiz (aka João Milho or John Corn) commented at 8:36 PMThe implementation also seemed very natural.
Read:
@foo.barWrite:
@foo.bar=Query:
@foo.bar?... ergo Update: @foo.bar!
... looks like the project was asking f...
-
Juan Maiz (aka João Milho or John Corn) created the ticket at 2:17 PMI'm tired of writing update_attribute. Hope it's not just me. I propose having a bang method in attributes:
@foo = Foo.find(10) @foo.bar! 'baz' // will update b...