f0391c2517
Using the sed script from https://gitlab.com/gitlab-org/gitlab-ce/issues/59758
9 lines
213 B
Ruby
9 lines
213 B
Ruby
# frozen_string_literal: true
|
|
|
|
module RoutesHelpers
|
|
def fake_routes(&block)
|
|
@routes = @routes.dup
|
|
@routes.formatter.clear
|
|
ActionDispatch::Routing::Mapper.new(@routes).instance_exec(&block)
|
|
end
|
|
end
|