This project is archived and is in readonly mode.
dynamic finder after where for same column is ignored
Reported by Daisuke Fujimura | February 9th, 2011 @ 12:02 PM
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,
No comments found
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile »
<h2 style="font-size: 14px">Tickets have moved to Github</h2>
The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>