class Doorkeeper::OAuth::ErrorResponse
def self.from_request(request)
def self.from_request(request) state = request.state if request.respond_to?(:state) new(:name => request.error, :state => state) end
def attributes
def attributes { 'error' => name, 'error_description' => description, 'state' => state }.reject { |k, v| v.blank? } end
def initialize(attributes = {})
def initialize(attributes = {}) @error = Doorkeeper::OAuth::Error.new(*attributes.values_at(:name, :state)) end
def status
def status :unauthorized end