Module: Stormpath::Rails::RoutingConstraint

Defined in:
lib/stormpath/rails/routing_constraint.rb

Class Method Summary collapse

Class Method Details

.matches?(request) ⇒ Boolean

Returns:

  • (Boolean)


4
5
6
# File 'lib/stormpath/rails/routing_constraint.rb', line 4

def self.matches?(request)
  ContentTypeNegotiator.new(request.headers['HTTP_ACCEPT']).handle_by_stormpath?
end