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

Version Path
doorkeeper-openid_connect-1.7.1 lib/doorkeeper/openid_connect/rails/routes/mapping.rb
doorkeeper-openid_connect-1.7.0 lib/doorkeeper/openid_connect/rails/routes/mapping.rb
doorkeeper-openid_connect-1.6.3 lib/doorkeeper/openid_connect/rails/routes/mapping.rb
doorkeeper-openid_connect-1.6.2 lib/doorkeeper/openid_connect/rails/routes/mapping.rb
doorkeeper-openid_connect-1.6.1 lib/doorkeeper/openid_connect/rails/routes/mapping.rb
doorkeeper-openid_connect-1.6.0 lib/doorkeeper/openid_connect/rails/routes/mapping.rb
doorkeeper-openid_connect-1.5.5 lib/doorkeeper/openid_connect/rails/routes/mapping.rb
doorkeeper-openid_connect-1.5.4 lib/doorkeeper/openid_connect/rails/routes/mapping.rb
doorkeeper-openid_connect-1.5.3 lib/doorkeeper/openid_connect/rails/routes/mapping.rb
doorkeeper-openid_connect-1.5.2 lib/doorkeeper/openid_connect/rails/routes/mapping.rb
doorkeeper-openid_connect-1.5.1 lib/doorkeeper/openid_connect/rails/routes/mapping.rb
doorkeeper-openid_connect-1.5.0 lib/doorkeeper/openid_connect/rails/routes/mapping.rb
doorkeeper-openid_connect-1.4.0 lib/doorkeeper/openid_connect/rails/routes/mapping.rb
doorkeeper-openid_connect-1.3.0 lib/doorkeeper/openid_connect/rails/routes/mapping.rb
doorkeeper-openid_connect-1.2.0 lib/doorkeeper/openid_connect/rails/routes/mapping.rb
doorkeeper-openid_connect-1.1.2 lib/doorkeeper/openid_connect/rails/routes/mapping.rb
doorkeeper-openid_connect-1.1.1 lib/doorkeeper/openid_connect/rails/routes/mapping.rb
doorkeeper-openid_connect-1.1.0 lib/doorkeeper/openid_connect/rails/routes/mapping.rb