Fix predicate builder in rails4 to handle 'not' in a way AR accepts