2019-06-18 13:33:34 Ruby

Ruby

Copy Copied! Full
def self.search(brand_names) Shop.all.select { |shop| shop.brand_list.any? { |brand| brand_names.include? brand } }.uniq end
RECOMMEND