diff options
Diffstat (limited to 'app/helpers/tracking_helper.rb')
-rw-r--r-- | app/helpers/tracking_helper.rb | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/app/helpers/tracking_helper.rb b/app/helpers/tracking_helper.rb index 1beb88548c5..9ef57a57d62 100644 --- a/app/helpers/tracking_helper.rb +++ b/app/helpers/tracking_helper.rb @@ -2,7 +2,7 @@ module TrackingHelper def tracking_attrs(label, action, property) - return {} unless tracking_enabled? + return {} unless ::Gitlab::Tracking.enabled? { data: { @@ -16,11 +16,4 @@ module TrackingHelper def tracking_attrs_data(label, action, property) tracking_attrs(label, action, property).fetch(:data, {}) end - - private - - def tracking_enabled? - Rails.env.production? && - ::Gitlab::Tracking.enabled? - end end |