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.

Joseph Palermo's latest activity

Saturday, May 14 2011
2503 validates_uniqueness_of is horribly inefficient in mysql was updated in Ruby on Rails
Tuesday, March 22 2011
6164 Eager load of a model with a default_scope of "select" also appends "table".*... was updated in Ruby on Rails
  • Joseph Palermo
    • State changed from stale to open
    by Joseph Palermo at 4:15 AM

    Missed the re-open step.
    [state:open]

Wednesday, March 16 2011
6164 Eager load of a model with a default_scope of "select" also appends "table".*... was updated in Ruby on Rails
  • Joseph Palermo
    • Tag set to association, default_scope, patch
    by Joseph Palermo at 3:36 PM

    Here is a patch with tests and the fix. Simply removing "|| table[Arel.star]" broke HABTM. So now it is only applied to HABTM eager loads.

  • Joseph Palermo
    Joseph Palermo commented at 5:02 AM

    I just verified this behavior still exists in Rails 3. I'll create a test case and a fix in the next couple of days.

Friday, March 11 2011
6504 Make associations respect store_full_sti_class was updated in Ruby on Rails
  • Joseph Palermo
    Joseph Palermo commented at 4:42 PM

    Looking closer, I see a lot of calls to "constantize" in the associations, rather than looking up the sti_class_name. Is store_full_sti_class supposed to apply ...

Wednesday, March 02 2011
6504 Make associations respect store_full_sti_class was created in Ruby on Rails
  • Joseph Palermo
    Joseph Palermo created the ticket at 9:41 AM

    Currently when doing an association preload, it will respect store_full_sti_class and use sti_name for the class it is loading.

    However, all of the association ...

Saturday, February 05 2011
6377 Support for disabling other_ids=(id,id,...) method on associations? was created in Ruby on Rails
  • Joseph Palermo
    Joseph Palermo created the ticket at 4:03 PM

    In my mind, the _ids= setter methods are very dangerous. I'd say typically people use update_attributes, and typically people don't make all of their models att...

Tuesday, December 14 2010
6164 Eager load of a model with a default_scope of "select" also appends "table".*... was created in Ruby on Rails
  • Joseph Palermo
    Joseph Palermo created the ticket at 6:54 PM

    class Thing < ActiveRecord::Base
    has_many :posts end
    class Post < ActiveRecord::Base
    default_scope select(column_names - ['body']) end

    Thing.includes(:posts).al...

Monday, June 14 2010
4839 [PATCH] form fields should allow developers to set values to nil was updated in Ruby on Rails
  • Joseph Palermo
    Joseph Palermo commented at 8:41 AM

    +1 Works for me.

    This has bitten me several times. Especially the id case where I have to have the same form on the page in two different places (such as the sa...

Tuesday, May 18 2010
4634 Duplicate association conditions are generated when using a named_scope on an... was created in Ruby on Rails
  • Joseph Palermo
    Joseph Palermo created the ticket at 12:52 AM

    Probably not a bug, as it does not change the behavior. But I spent the afternoon tracking down why my association conditions were being applied twice in the qu...