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.

This project is archived and is in readonly mode.

dynamic finder after where for same column is ignored

#6396

Hi,

In 3.0.4 and edge, using dynamic finder(like find_by_id) after where for same column seems misbehaving.

for example,

Article.where(:id => 2).find_by_id(1)

returns Article with id:2, not id:1 nor nil. is it intended behavior?
in 3.0.3, this code returns nil.

I attached the failing test for this case, but can't find how to fix.

thanks,

Reported by Daisuke Fujimura · February 9th, 2011 @ 12:02 PM

State: new
Milestone: none
Assigned to: nobody
Importance: none

Activity

No comments yet.