class Stall::Routes::CuratedProductListExistsConstraint

Public Instance Methods

matches?(request) click to toggle source
# File lib/stall/routes.rb, line 114
def matches?(request)
  id = request.params[:curated_product_list_id] || request.params[:id]
  CuratedProductList.exists?(slug: id)
end