回答

3

試試這個

scope :history, where('$or' => [{:end.ne => nil}, {:end.lt => Time.current}]) 
相關問題