Multiple Conditions and ActiveRecord::RecordNotFound


#1

Hey all,

It seems that if I do a Foo.find(:first, :conditions => [“identifier =
?”, content_identifier]) and no records are returned then I get the
exception thrown.

When I add a second condition Foo.find(:first, :conditions =>
[“identifier = ? AND bar = ?”, content_identifier, “1”])

Even though again no records are returned, the exception isn’t thrown.

Any ideas? Bug?

Thanks,
Paul