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

Sunday, April 11 2010
2385 Change instructions for installing mysql ruby bindings. was updated in Ruby on Rails
  • Joseph Palermo
    Joseph Palermo commented at 3:03 AM

    Yes, the fact there there is a good very of the gem mostly resolves this issue.

    Using gems to install binary bindings is still not a good idea because even thou...

Thursday, July 30 2009
with_chained_scopes.diff was uploaded by Joseph Palermo at 8:13 AM to #1267, Ruby on Rails
1267 Methods invoked within named_scope Procs should respect the scope stack was updated in Ruby on Rails
  • Joseph Palermo
    Joseph Palermo commented at 8:12 AM

    Why does it keep eating my uploads?

  • Joseph Palermo
    Joseph Palermo commented at 8:11 AM

    Here is the patch for the new functionality. Since named scopes have either taken a Proc OR a options hash, there is now the ability to pass the Proc as a :proc...

Wednesday, July 29 2009
1267 Methods invoked within named_scope Procs should respect the scope stack was updated in Ruby on Rails
  • Joseph Palermo
    Joseph Palermo commented at 7:59 AM

    Named scopes can be composable. Conditions and Joins are all merged together. Selects, Order, and Limit are not things that are usually used with named scopes, ...

Tuesday, July 28 2009
1267 Methods invoked within named_scope Procs should respect the scope stack was updated in Ruby on Rails
  • Joseph Palermo
    Joseph Palermo commented at 9:06 PM

    3rd try, not sure why the patch file is not making it to S3

  • Joseph Palermo
    Joseph Palermo commented at 8:51 PM

    Here is a test that shows the original functionality, before the patch.

    I could get behind a :with_chained_scopes option to named_scope.

  • Joseph Palermo
    Joseph Palermo commented at 11:13 AM

    To me, named_scopes should be composable. If I can't rely on the internals of a named_scope to create the same conditions every time I pass it the same paramete...

Monday, July 27 2009
1267 Methods invoked within named_scope Procs should respect the scope stack was updated in Ruby on Rails
  • Joseph Palermo
    • Assigned user set to Pratik
    by Joseph Palermo at 7:49 PM

    This leads to named_scopes that are order dependent, and queries inside of lambdas do not behave as you would expect.

    Given a User class with a 'friends' associ...