handle rails 4.0 scopes in associations
handle the new-style AR associations that take a scope as the first
argument and options as the second.