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.

Matt Hanlon's latest activity

Monday, June 22 2009
2740 Find conditions get clobbered by nested scopes was updated in Ruby on Rails
  • Matt Hanlon
    • Tag changed from 2.3.2, activerecord, condition, find, named_scope, s to 2.3.2, activerecord, condition, find, named_scope
    by Matt Hanlon at 7:54 PM
  • Matt Hanlon
    • Tag set to 2.3.2, activerecord, condition, find, named_scope, s
    by Matt Hanlon at 7:54 PM
Friday, May 29 2009
2740 Find conditions get clobbered by nested scopes was updated in Ruby on Rails
  • Matt Hanlon
    Matt Hanlon commented at 9:57 PM

    As background, I came across this issue while upgrading a 2.1 rails app that uses nested find scopes to implement some user access control. Basically it uses na...

  • Matt Hanlon
    Matt Hanlon created the ticket at 9:52 PM

    In ActiveRecord 2.3.2, nested scopes (named or dynamic) that have conditions hashes with common keys get overwritten by the final scope. For instance suppose th...