Project path helpers still don't work in production mode
The MRs https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/12566 and https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/12675 still aren't right
The best way I found to demonstrate this locally is this. Load a rails console and do the following:
[1] pry(main)> class Foo; include Gitlab::Routing; end
=> Foo
[2] pry(main)> module Bar; def bar; end; end
=> :bar
[3] pry(main)> Gitlab::Routing.url_helpers.include Bar
=> #<Module:0x007f9780092cd8>
[4] pry(main)> $ Foo#bar
Error: Couldn't locate a definition for Foo#bar!
[5] pry(main)> class Baz; include Gitlab::Routing; end
=> Baz
[6] pry(main)> $ Baz#bar
From: (pry) @ line 2:
Owner: Bar
Visibility: public
Number of lines: 1
So this works in development because the descendants of Gitlab::Routing
get reloaded, but not in production because they are only loaded before we extend the module