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.

Tom Lea's latest activity

Saturday, October 30 2010
1339 AR::Base should not be nuking its children, just because it lost interest was updated in Ruby on Rails
  • Tom Lea
    Tom Lea commented at 10:10 PM

    Weirder, you would have two versions loaded at once. Your plugin would reference the old version (via it's associations) and the rest of your app would see the ...

Friday, October 29 2010
1339 AR::Base should not be nuking its children, just because it lost interest was updated in Ruby on Rails
  • Tom Lea
    Tom Lea commented at 11:37 AM

    The timestamp is a lie.

    But the patch will probably still work (not tried it recently, my focus moved on).

    You will find that any of the classes that were explo...

Monday, October 26 2009
3165 ActiveRecord::MissingAttributeError after update to rails v 2.3.4 was updated in Ruby on Rails
  • Tom Lea
    Tom Lea commented at 3:20 PM

    @Rob Olson: Just a note, your failing test does not fail. after_initialize is not quite like other callbacks, it's slipped unless defined as an actual method (f...

Thursday, July 09 2009
2263 Rails 2.3.2 breaks implicit multipart actionmailer tests was updated in Ruby on Rails
  • Tom Lea
    Tom Lea commented at 4:41 PM

    Also seeing this same issue, just patched it myself (almost the same patch as above).

    Fixed it in production with the following hack:

    raise "Not needed in rail...
Friday, May 01 2009
2590 [PATCH] Fix accidental caching of proc objects instead of the content it repr... was created in Ruby on Rails
  • Tom Lea
    Tom Lea created the ticket at 1:03 AM

    Streaming content will return a proc that rack handles just fine, but cache_page expects a string.

    This exhibits itself by caching the following instead of the ...

Wednesday, April 15 2009
2502 [patch] AR::Base Reverse find_in_batches. was created in Ruby on Rails
  • Tom Lea
    Tom Lea created the ticket at 11:51 PM

    I wanted to find the most recent 200 items that matched a function (could not be done in the DB). Hits where fairly sparse, so it could mean scanning the whole ...

Saturday, April 11 2009
1339 AR::Base should not be nuking its children, just because it lost interest was updated in Ruby on Rails
  • Tom Lea
    Tom Lea commented at 4:59 AM

    Just tried the patch against 2.3, and I can't seem to find any evidence of a difference in memory leakynes anymore.

    Could someone (ideally @C. Bedard with he sa...

Monday, April 06 2009
1339 AR::Base should not be nuking it's children, just because it lost interest was updated in Ruby on Rails
  • Tom Lea
    Tom Lea commented at 8:24 PM

    @Shak, @C. Bedard If you must store between requests, Marshal it. If you would simply prefer it to be there between requests, stash it in your controller's clas...

Friday, March 06 2009
1339 AR::Base should not be nuking it's children, just because it lost interest was updated in Ruby on Rails
  • Tom Lea
    Tom Lea commented at 10:22 PM

    @pawel: As far as I am aware, this is still unresolved.

    The 'real world' memory leaks reported are unacceptable. Much bigger than I expected, so this solution i...

Monday, January 12 2009
1339 AR::Base should not be nuking it's children, just because it lost interest was updated in Ruby on Rails
  • Tom Lea
    Tom Lea commented at 6:43 PM

    @C. Bedard: Just to be clear, the patch does not make magic happen, all instances remain instances of the class they always were instances off. When the contsan...