diff options
author | syasonik <syasonik@gitlab.com> | 2019-07-04 11:57:13 +0300 |
---|---|---|
committer | syasonik <syasonik@gitlab.com> | 2019-07-04 11:57:13 +0300 |
commit | bd3fadb57a0194010978e3e5c33a1d55b3d8889f (patch) | |
tree | 13170bb40fe62488cb81c87cb900b2b1ed20e5c7 | |
parent | 2ad75a4f96c4d377e18788966e7eefee4d78b6d2 (diff) | |
download | gitlab-ce-add-ff-embedding-metrics.tar.gz |
Push feature flag for embedding metricsadd-ff-embedding-metrics
-rw-r--r-- | lib/gitlab/gon_helper.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/gitlab/gon_helper.rb b/lib/gitlab/gon_helper.rb index 92917028851..41ec8741eb1 100644 --- a/lib/gitlab/gon_helper.rb +++ b/lib/gitlab/gon_helper.rb @@ -38,6 +38,11 @@ module Gitlab gon.current_user_fullname = current_user.name gon.current_user_avatar_url = current_user.avatar_url end + + # Flag controls a GFM feature used across many routes. + # Pushing the flag from one place simplifies control + # and facilitates easy removal. + push_frontend_feature_flag(:gfm_embedded_metrics) end # Exposes the state of a feature flag to the frontend code. |