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

Make .enabled? in destinations public

parent 76c68be9
......@@ -30,16 +30,16 @@ module Gitlab
}.transform_keys! { |key| key.to_s.camelize(:lower).to_sym }
end
def enabled?
Gitlab::CurrentSettings.snowplow_enabled?
end
def hostname
Gitlab::CurrentSettings.snowplow_collector_hostname
end
private
def enabled?
Gitlab::CurrentSettings.snowplow_enabled?
end
def app_id
Gitlab::CurrentSettings.snowplow_app_id
end
......
......@@ -18,6 +18,11 @@ module Gitlab
).transform_keys! { |key| key.to_s.camelize(:lower).to_sym }
end
override :enabled?
def enabled?
true
end
override :hostname
def hostname
"#{uri.host}:#{uri.port}"
......@@ -33,11 +38,6 @@ module Gitlab
private
override :enabled?
def enabled?
true
end
override :cookie_domain
def cookie_domain
'.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