Module: ActionDispatch::Journey::Route::VerbMatchers

Defined in:
lib/action_dispatch/journey/route.rb

Defined Under Namespace

Classes: All, Unknown

Constant Summary collapse

VERBS =
%w{ DELETE GET HEAD OPTIONS LINK PATCH POST PUT TRACE UNLINK }
VERB_TO_CLASS =
VERBS.each_with_object(all: All) do |verb, hash|
  klass = const_get verb
  hash[verb]                 = klass
  hash[verb.downcase]        = klass
  hash[verb.downcase.to_sym] = klass
end