Resolve with_role method throws a pg::syntaxerror #233

Resolve an issue that occurs when moving to Rails 4.0.4