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.

toby cabot's latest activity

Tuesday, March 15 2011
5960 small enhancement to query scopes was updated in Ruby on Rails
  • toby cabot
    • Tag cleared.
    • State changed from stale to open
    by toby cabot at 10:26 PM

    [state:open]

    This is a small but, I think, worthwhile change to make Rails scopes a little more forgiving to new users.

    I've rebased the patch (5960-2.diff) so ...

Monday, November 15 2010
5960 small enhancement to query scopes was updated in Ruby on Rails
  • toby cabot
    • Tag changed from patch to activerecord rails3, patch
    by toby cabot at 8:15 PM
Friday, November 12 2010
5960 small enhancement to query scopes was updated in Ruby on Rails
  • toby cabot
    • Tag set to patch
    by toby cabot at 1:58 PM

    Here's a small patch that allows this behavior. It adds a special case to the scope processing (there were already 3 cases so this isn't a big change) that avoi...

  • toby cabot
    toby cabot created the ticket at 1:54 PM

    If you do this (which is an easy mistake for a newbie like me to make):

    module RailsAdmin
    class History < ActiveRecord::Base

    scope :most_recent, lambda {|table...
Thursday, October 21 2010
1108 caching bugs in ActiveRecord#create and associations was updated in Ruby on Rails
5737 find_or_create_by_x with create params via association broke in 2.3.9 was updated in Ruby on Rails
  • toby cabot
    toby cabot commented at 12:32 PM

    Aaron Patterson committed the fix to #1108 so this ticket can be closed.

Thursday, September 30 2010
1108 caching bugs in ActiveRecord#create and associations was updated in Ruby on Rails
  • toby cabot
    toby cabot commented at 1:32 PM

    Looks like I can't re-open this bug so I've opened #5737 to track the resolution of these bugs.

Wednesday, September 29 2010
5737 find_or_create_by_x with create params via association broke in 2.3.9 was created in Ruby on Rails
  • toby cabot
    toby cabot created the ticket at 9:39 PM

    Sorry about opening this bug - I'd prefer to re-open #1108 but I don't know how to do that.

    The fix to #1108 added two new bugs.

    Commit fad166c15277c72b370c90e8...

1108 caching bugs in ActiveRecord#create and associations was updated in Ruby on Rails
  • toby cabot
    toby cabot commented at 9:31 PM

    Here's a 2-part patch that fixes both problems. The gist of the first part of the patch is to filter parameters provided to a find_or_create_by_x method call so...

Tuesday, September 28 2010
1108 caching bugs in ActiveRecord#create and associations was updated in Ruby on Rails
  • toby cabot
    toby cabot commented at 9:17 PM

    fad166c15277c72b370c90e890d509d0f6c9af63 also broke find_or_create_by_x with a block provided. It used to yield to the block but it doesn't anymore. I'll attach...