Class: Stall::Routes::ProductCategoryExistsConstraint
- Inherits:
-
Object
- Object
- Stall::Routes::ProductCategoryExistsConstraint
- Defined in:
- lib/stall/routes.rb
Instance Method Summary collapse
Instance Method Details
#matches?(request) ⇒ Boolean
108 109 110 |
# File 'lib/stall/routes.rb', line 108 def matches?(request) ProductCategory.exists?(slug: request.params[:id]) end |