Class: Kryptonite::RouteConstraint

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

Instance Method Summary collapse

Instance Method Details

#matches?(request) ⇒ Boolean

Returns:

  • (Boolean)


15
16
17
18
19
# File 'lib/kryptonite/engine.rb', line 15

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