Sha256: c7059cdf9dec2b3bf65684c3ff4728b6051f845bef192d34f9f42a1d93b8eb9b

Contents?: true

Size: 612 Bytes

Versions: 22

Compression:

Stored size: 612 Bytes

Contents

# frozen_string_literal: true

module Doorkeeper
  module Rails
    class Routes # :nodoc:
      class Mapper
        def initialize
          @mapping = Mapping.new
        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

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
doorkeeper-5.1.2 lib/doorkeeper/rails/routes/mapper.rb
doorkeeper-5.2.6 lib/doorkeeper/rails/routes/mapper.rb
doorkeeper-5.3.3 lib/doorkeeper/rails/routes/mapper.rb
doorkeeper-5.0.3 lib/doorkeeper/rails/routes/mapper.rb
doorkeeper-5.1.1 lib/doorkeeper/rails/routes/mapper.rb
doorkeeper-5.2.5 lib/doorkeeper/rails/routes/mapper.rb
doorkeeper-5.3.2 lib/doorkeeper/rails/routes/mapper.rb
doorkeeper-5.2.4 lib/doorkeeper/rails/routes/mapper.rb
doorkeeper-5.3.1 lib/doorkeeper/rails/routes/mapper.rb
doorkeeper-5.3.0 lib/doorkeeper/rails/routes/mapper.rb
doorkeeper-5.2.3 lib/doorkeeper/rails/routes/mapper.rb
doorkeeper-5.2.2 lib/doorkeeper/rails/routes/mapper.rb
doorkeeper-5.2.1 lib/doorkeeper/rails/routes/mapper.rb
doorkeeper-5.2.0 lib/doorkeeper/rails/routes/mapper.rb
doorkeeper-5.2.0.rc3 lib/doorkeeper/rails/routes/mapper.rb
doorkeeper-5.2.0.rc2 lib/doorkeeper/rails/routes/mapper.rb
doorkeeper-5.2.0.rc1 lib/doorkeeper/rails/routes/mapper.rb
doorkeeper-5.1.0 lib/doorkeeper/rails/routes/mapper.rb
doorkeeper-5.1.0.rc2 lib/doorkeeper/rails/routes/mapper.rb
doorkeeper-5.1.0.rc1 lib/doorkeeper/rails/routes/mapper.rb