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