我
scope :delivered, where(:status => Status::DELIVERED)
SELECT "orders".* FROM "orders" WHERE "orders"."status" IN ( Pending , Partially Prepared )
现在我想增加新的范围,以便除已交付的命令外,都能得到所有。
scope :not_delivered, where(:status != Status::DELIVERED)
SELECT "orders".* FROM "orders" WHERE ( t )
如何扭转范围?