#897: support rails 4 association conditions