module Doorkeeper::Rails::Routes::Registry
def register_routes(routes)
-
routes
(Object
) --
def register_routes(routes) if !routes.is_a?(Module) || !(routes < AbstractRouter) raise InvalidRouterClass, "routes class must include Doorkeeper::Rails::AbstractRouter" end ROUTES_ACCESS_LOCK.synchronize do registered_routes << routes end end
def registered_routes
-
(Array
- set of registered routes
def registered_routes ROUTES_DEFINITION_LOCK.synchronize do @registered_routes ||= Set.new end end