Sha256: 399e9affa6e4a02245cd898d802b6057d6e90a13867cb1c70f1ccbd4bc68d4d7
Contents?: true
Size: 765 Bytes
Versions: 18
Compression:
Stored size: 765 Bytes
Contents
module Doorkeeper module OpenidConnect module Rails class Routes class Mapping attr_accessor :controllers, :as, :skips def initialize @controllers = { userinfo: 'doorkeeper/openid_connect/userinfo', discovery: 'doorkeeper/openid_connect/discovery' } @as = { userinfo: :userinfo, discovery: :discovery } @skips = [] end def [](routes) { controllers: @controllers[routes], as: @as[routes] } end def skipped?(controller) @skips.include?(controller) end end end end end end
Version data entries
18 entries across 18 versions & 1 rubygems