Sha256: 7762e1c1ec7f66f8af91bae9b4358ef8c6b7462afd608debd87fa027f7ab2c73

Contents?: true

Size: 663 Bytes

Versions: 18

Compression:

Stored size: 663 Bytes

Contents

module Doorkeeper
  module OpenidConnect
    module Rails
      class Routes
        class Mapper
          def initialize(mapping = Mapping.new)
            @mapping = mapping
          end

          def map(&block)
            instance_eval(&block) if block
            @mapping
          end

          def controllers(controller_names = {})
            @mapping.controllers.merge!(controller_names)
          end

          def skip_controllers(*controller_names)
            @mapping.skips = controller_names
          end

          def as(alias_names = {})
            @mapping.as.merge!(alias_names)
          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/mapper.rb
doorkeeper-openid_connect-1.7.0 lib/doorkeeper/openid_connect/rails/routes/mapper.rb
doorkeeper-openid_connect-1.6.3 lib/doorkeeper/openid_connect/rails/routes/mapper.rb
doorkeeper-openid_connect-1.6.2 lib/doorkeeper/openid_connect/rails/routes/mapper.rb
doorkeeper-openid_connect-1.6.1 lib/doorkeeper/openid_connect/rails/routes/mapper.rb
doorkeeper-openid_connect-1.6.0 lib/doorkeeper/openid_connect/rails/routes/mapper.rb
doorkeeper-openid_connect-1.5.5 lib/doorkeeper/openid_connect/rails/routes/mapper.rb
doorkeeper-openid_connect-1.5.4 lib/doorkeeper/openid_connect/rails/routes/mapper.rb
doorkeeper-openid_connect-1.5.3 lib/doorkeeper/openid_connect/rails/routes/mapper.rb
doorkeeper-openid_connect-1.5.2 lib/doorkeeper/openid_connect/rails/routes/mapper.rb
doorkeeper-openid_connect-1.5.1 lib/doorkeeper/openid_connect/rails/routes/mapper.rb
doorkeeper-openid_connect-1.5.0 lib/doorkeeper/openid_connect/rails/routes/mapper.rb
doorkeeper-openid_connect-1.4.0 lib/doorkeeper/openid_connect/rails/routes/mapper.rb
doorkeeper-openid_connect-1.3.0 lib/doorkeeper/openid_connect/rails/routes/mapper.rb
doorkeeper-openid_connect-1.2.0 lib/doorkeeper/openid_connect/rails/routes/mapper.rb
doorkeeper-openid_connect-1.1.2 lib/doorkeeper/openid_connect/rails/routes/mapper.rb
doorkeeper-openid_connect-1.1.1 lib/doorkeeper/openid_connect/rails/routes/mapper.rb
doorkeeper-openid_connect-1.1.0 lib/doorkeeper/openid_connect/rails/routes/mapper.rb