class Doorkeeper::Request::Code
def self.build(server)
def self.build(server) new(server.context.send(:pre_auth), server) end
def authorize
def authorize request.authorize end
def initialize(pre_auth, server)
def initialize(pre_auth, server) @pre_auth, @server = pre_auth, server end
def request
def request @request ||= OAuth::CodeRequest.new(pre_auth, server.current_resource_owner) end