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