Commit 010f4725 authored by Piotr Skorupa's avatar Piotr Skorupa

Make .enabled? in destinations public

parent 76c68be9
...@@ -30,16 +30,16 @@ module Gitlab ...@@ -30,16 +30,16 @@ module Gitlab
}.transform_keys! { |key| key.to_s.camelize(:lower).to_sym } }.transform_keys! { |key| key.to_s.camelize(:lower).to_sym }
end end
def enabled?
Gitlab::CurrentSettings.snowplow_enabled?
end
def hostname def hostname
Gitlab::CurrentSettings.snowplow_collector_hostname Gitlab::CurrentSettings.snowplow_collector_hostname
end end
private private
def enabled?
Gitlab::CurrentSettings.snowplow_enabled?
end
def app_id def app_id
Gitlab::CurrentSettings.snowplow_app_id Gitlab::CurrentSettings.snowplow_app_id
end end
......
...@@ -18,6 +18,11 @@ module Gitlab ...@@ -18,6 +18,11 @@ module Gitlab
).transform_keys! { |key| key.to_s.camelize(:lower).to_sym } ).transform_keys! { |key| key.to_s.camelize(:lower).to_sym }
end end
override :enabled?
def enabled?
true
end
override :hostname override :hostname
def hostname def hostname
"#{uri.host}:#{uri.port}" "#{uri.host}:#{uri.port}"
...@@ -33,11 +38,6 @@ module Gitlab ...@@ -33,11 +38,6 @@ module Gitlab
private private
override :enabled?
def enabled?
true
end
override :cookie_domain override :cookie_domain
def cookie_domain def cookie_domain
'.gitlab.com' '.gitlab.com'
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment