change conditions into arel expressions
Merge pull request #159 from mlitwiniuk/master

change conditions into arel expressions