diff options
author | Kamil Trzcinski <ayufan@ayufan.eu> | 2015-09-22 16:08:35 +0200 |
---|---|---|
committer | Kamil Trzcinski <ayufan@ayufan.eu> | 2015-09-22 16:09:14 +0200 |
commit | dabbee65d44a3cdd7e78c48176d3f5def51da1b7 (patch) | |
tree | 2247f4576783e516a3d2124338db10cad04ea874 /app/helpers/ci | |
parent | 0ce5fb71b609ebf74d95b4027b8eb91beafa3db4 (diff) | |
download | gitlab-ce-dabbee65d44a3cdd7e78c48176d3f5def51da1b7.tar.gz |
Fix Slack notification URL and remove the usage of Ci::RoutesHelper
Diffstat (limited to 'app/helpers/ci')
-rw-r--r-- | app/helpers/ci/routes_helper.rb | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/app/helpers/ci/routes_helper.rb b/app/helpers/ci/routes_helper.rb deleted file mode 100644 index 42cd54b064f..00000000000 --- a/app/helpers/ci/routes_helper.rb +++ /dev/null @@ -1,29 +0,0 @@ -module Ci - module RoutesHelper - class Base - include Gitlab::Application.routes.url_helpers - - def default_url_options - { - host: Settings.gitlab['host'], - protocol: Settings.gitlab['https'] ? "https" : "http", - port: Settings.gitlab['port'] - } - end - end - - def url_helpers - @url_helpers ||= Base.new - end - - def self.method_missing(method, *args, &block) - @url_helpers ||= Base.new - - if @url_helpers.respond_to?(method) - @url_helpers.send(method, *args, &block) - else - super method, *args, &block - end - end - end -end |