Dennis-
I've been thinking of this for a while. At least, if I'm reading what you're saying right, I have.
To me, this is what I've wanted.
Any object that implements .to_sql(connection) should be allowed as a condition.
#A useless stub example. class Array def to_sql(connection) connection.quote(self.to_s) end end
Basically, this would open up any crazy-idea that anyone wants to implement for conditions.
ActiveSupport would implement the default Object#to_sql(con) methods.
Thoughts on this API?
-hampton.