class Rad::Router::Configurator inject router: :router def initialize router @router = router end def persistent_params *args args.each{|v| router.persistent_params << v} end class << self inject router: :router def configure &block block.call Rad::Router::Configurator.new(router) end end end