1
order
order
由於默認情況下,以下兩個作用域中的查詢不需要嗎?是否將默認範圍添加到Rails 3.1中的其他範圍?
scope :paid, where('is_paid_merchant = true').order('weekly_clicks DESC')
scope :unpaid, where('is_paid_merchant = false').order('weekly_clicks DESC')
default_scope order('weekly_clicks DESC')
如果默認範圍確實添加到所有其他領域,有什麼優先順序的?這是第一個還是最後一個?