class Stall::Routes::ProductCategoryExistsConstraint

Public Instance Methods

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