Class: Caseadilla::RouteConstraint

Inherits:
Object
  • Object
show all
Defined in:
lib/caseadilla/engine.rb

Instance Method Summary collapse

Instance Method Details

#matches?(request) ⇒ Boolean

Returns:

  • (Boolean)

28
29
30
31
32
# File 'lib/caseadilla/engine.rb', line 28

def matches?(request)
  return false if request.fullpath.include?("/caseadilla")
  return false if request.fullpath.include?("/admin")
  true
end