module Doorkeeper::Rails::AbstractRouter
def generate_routes!(**_options)
def generate_routes!(**_options) raise NotImplementedError, "must be redefined for #{self.class.name}!" end
def initialize(routes, mapper = Mapper.new, &block)
def initialize(routes, mapper = Mapper.new, &block) @routes = routes @mapping = mapper.map(&block) end
def map_route(name, method)
def map_route(name, method) return if @mapping.skipped?(name) send(method, @mapping[name]) mapping[name] = @mapping[name] end