Class: Stall::Routes::ProductCategoryExistsConstraint

Inherits:
Object
  • Object
show all
Defined in:
lib/stall/routes.rb

Instance Method Summary collapse

Instance Method Details

#matches?(request) ⇒ Boolean

Returns:

  • (Boolean)


79
80
81
# File 'lib/stall/routes.rb', line 79

def matches?(request)
  ProductCategory.exists?(slug: request.params[:id])
end