Revert "fix bug with unprepared statements to sql in Rails 4"

This reverts commit cd9d040d64a76bb95e9785b8ef68c111643f1727.