fixes to post/pool apis

This commit is contained in:
albert
2013-02-26 22:29:59 -08:00
parent 5bf22e9c67
commit 540d64682d
4 changed files with 34 additions and 0 deletions

View File

@@ -34,6 +34,9 @@ class PostQueryBuilder
when :lte
relation.where(["#{field} <= ?", arr[1]])
when :in
relation.where(["#{field} in (?)", arr[1]])
when :between
relation.where(["#{field} BETWEEN ? AND ?", arr[1], arr[2]])