# File lib/doorkeeper/request.rb, line 24 def get_strategy(grant_or_request_type, available) fail Errors::MissingRequestStrategy unless grant_or_request_type.present? fail NameError unless available.include?(grant_or_request_type.to_s) "Doorkeeper::Request::#{grant_or_request_type.to_s.camelize}".constantize end