Class: Constraints::JournalCategories
- Inherits:
-
Object
- Object
- Constraints::JournalCategories
- Defined in:
- lib/constraints/categories.rb
Class Method Summary collapse
Class Method Details
.matches?(request) ⇒ Boolean
3 4 5 6 7 8 9 |
# File 'lib/constraints/categories.rb', line 3 def self.matches?(request) begin JournalCategory.find(request.params[:slug]) rescue false end end |