applicake/doorkeeper — pull request #239 by miyagawa (2013-06-04 08:36:35+00:00)
Title: Do not try to load unavailable Request class for the current phase.

If you send grant_type=code for token request for example, you'll see runtime
exceptions such as:

undefined method `pre_auth'; for #

Since grant_type comes as a request parameter, it's better to explicitly
limit the available request implementations rather than trying to load the
class and rescue constant lookup failures.