debian-mirror-gitlab/lib/gitlab/routing.rb

14 lines
335 B
Ruby
Raw Normal View History

2016-06-02 11:05:42 +05:30
module Gitlab
module Routing
# 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.
def self.url_helpers
@url_helpers ||= Gitlab::Application.routes.url_helpers
end
end
end