I've programmatically built an array suitable for ActiveRecord::Base.find()s :conditions parameter. However, I'm also doing a find_by_sql on the same model and I want to generate the relevant WHERE clause.
Does Activerecord have an easy way to do this? I can't see anything immediately in the docs
Thanks, Gareth