use arel instead of plain SQL
Merge pull request #28 from ichi/feature

use arel instead of plain SQL