:conditions executed properly but get overwritten


#1

Hi all. I’m doing a find(:all, :conditions => ‘…’), but the result
I’m given acts as though I did not provide any conditions.

My log file shows two queries - first is the correct one, with all
conditions included (when run against my database it returns the
expected result, so the query is good). The second query is simple a
SELECT * with NO conditions.

I’m executing find twice within my action, but the first has no
problems (it’s also a find(:first) and not a find(:all)). Any ideas?

  • Rabbit