hiddentao/squel — pull request #16 by diwu1989 (2013-05-10 03:25:21+00:00)
Title: Adding where parameter substitution

Allow the use of .where(condition, val1, val2, val3, ...) for parameter substitution.

example:
.where('a = ?', 'hello world')
--- where a = 'hello world'

.where('a in ?', [1,2,3])
--- where a in (1, 2, 3)

.where('a in ? and b = ?', ['x', 'y'], 123)
--- where a in ('x', 'y') and b = 123