Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

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)
    Juan Maiz (aka João Milho or John Corn) commented at 8:36 PM

    The implementation also seemed very natural.

    Read:
    @foo.bar

    Write:
    @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)
    Juan Maiz (aka João Milho or John Corn) created the ticket at 2: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) @foo.bar! 'baz' // will update b...