Module: Gitlab::Routing

Defined in:
lib/gitlab/routing.rb

Class Method Summary collapse

Class Method Details

.url_helpersObject

Returns the URL helpers Module.

This method caches the output as Rails' “url_helpers” method creates an anonymous module every time it's called.

Returns a Module.


9
10
11
# File 'lib/gitlab/routing.rb', line 9

def self.url_helpers
  @url_helpers ||= Gitlab::Application.routes.url_helpers
end