2015-11-02 49 views

回答

1

我通常使用的東西沿着這些路線:

search = { active: true } 
search[:id] = ids if ids 

User.where(search) 
+0

感謝@sergio。更好。 –

相關問題