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.

Carlos Júnior (xjunior)'s latest activity

Thursday, October 30 2008
1285 Reduce queries in uniqueness validation was updated in Ruby on Rails
  • Carlos Júnior (xjunior)
    Carlos Júnior (xjunior) commented at 11:09 AM

    I really don't think so. If the attribute was correctly saved (it was unique before), and it has not changed, then, doesn't matter the external state (that if w...

Wednesday, October 29 2008
1285 Reduce queries in uniqueness validation was updated in Ruby on Rails
1254 [PATCH] Array support to update_counters was updated in Ruby on Rails
Tuesday, October 28 2008
1254 [PATCH] Array support to update_counters was updated in Ruby on Rails
  • Carlos Júnior (xjunior)
    • Title changed from Adding Array support to update_counters to [PATCH] Array support to update_counters
    by Carlos Júnior (xjunior) at 2:12 PM
1285 [PATCH] Reduce queries in uniqueness validation was created in Ruby on Rails
  • Carlos Júnior (xjunior)
    Carlos Júnior (xjunior) created the ticket at 2:11 PM

    When you're doing a uniqueness validation, you don't have to do it if the value haven't changed. Even if it's nil, because the validation should be done by the ...

Thursday, October 23 2008
1254 Adding Array support to update_counters was created in Ruby on Rails
  • Carlos Júnior (xjunior)
    Carlos Júnior (xjunior) created the ticket at 12:46 AM

    Many times I found my self needing to increment a lot of counters at the same time, but it's not possible yet.

    Now we can do:

    Model.increment_counter :points, [...