I am trying to combine two scopes or add some more to an existing scope.
scope :public_bids, -> {
where(status: [Status::ACCEPTED, Status::OUTBID, Status::SOLD, Status::NO_SALE],
bid_type: [BidType::MANUAL, BidType::AUTO, BidType::LIVE])
scope :outbid_maxbids, -> {
where(status: Status::OUTBID, bid_type: BidType::MAXBID)
I am having trouble determining how to OR
them together or combine then into one scope. Any suggestions/guidance? I would prefer that they be combined into one single scope.