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
79 80 81 |
# File 'lib/stall/routes.rb', line 79 def matches?(request) ProductCategory.exists?(slug: request.params[:id]) end |