Class: Hangar::RouteConstraint

Inherits:
Object
  • Object
show all
Defined in:
lib/hangar/constraint.rb

Instance Method Summary collapse

Instance Method Details

#matches?(request) ⇒ Boolean

Returns:

  • (Boolean)

3
4
5
# File 'lib/hangar/constraint.rb', line 3

def matches?(request)
  request.headers['HTTP_FACTORY'] == 'hangar'
end