fix rails 4 deprecation warning for `:conditions` in an association definition