1
目前我建立這樣的查詢:從模型中獲取範圍中的ActiveRecord
account.sales.method_needing_more_account_info(account)
我想基於這樣已經存在,簡化了方法的範圍,能夠確定帳戶呼籲喜歡的東西這:
account.sales.method_pulling_account_from_scope
我這樣做是因爲帳戶模型持有某些設置,確定如何呈現銷售數據並更改匹配的查詢。
導軌3的方法似乎是最好的。謝謝! – iterion 2012-04-11 18:28:39