Sha256: 768193638dcc0bdc1ac31e32f8e385c373b576c600de72d9d97b1595eba35c27

Contents?: true

Size: 581 Bytes

Versions: 12

Compression:

Stored size: 581 Bytes

Contents

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

12 entries across 12 versions & 1 rubygems

Version Path
doorkeeper-4.4.3 lib/doorkeeper/rails/routes/mapper.rb
doorkeeper-5.0.0 lib/doorkeeper/rails/routes/mapper.rb
doorkeeper-4.4.2 lib/doorkeeper/rails/routes/mapper.rb
doorkeeper-4.4.1 lib/doorkeeper/rails/routes/mapper.rb
doorkeeper-5.0.0.rc2 lib/doorkeeper/rails/routes/mapper.rb
doorkeeper-4.4.0 lib/doorkeeper/rails/routes/mapper.rb
doorkeeper-5.0.0.rc1 lib/doorkeeper/rails/routes/mapper.rb
doorkeeper-4.3.2 lib/doorkeeper/rails/routes/mapper.rb
doorkeeper-4.3.1 lib/doorkeeper/rails/routes/mapper.rb
doorkeeper-4.3.0 lib/doorkeeper/rails/routes/mapper.rb
doorkeeper-4.2.6 lib/doorkeeper/rails/routes/mapper.rb
doorkeeper-4.2.5 lib/doorkeeper/rails/routes/mapper.rb