TabDigital/squel — pull request #4 by waterytowers (2014-10-01 06:44:50+00:00)
Title: [bugfix/toParam-nested] Join ON Condition and Where Expr fixed

ON Conditions and where clauses did not handle the use of an expression with parameters when calling toParam.

Needed to check for class types cls.Expression and call toParam on each where appropriate. Join condition parameters are processed immediately after the join table to add their respective parameters.

/cc @richjharris