Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClement Ho <clemmakesapps@gmail.com>2018-12-06 19:46:12 +0300
committerClement Ho <clemmakesapps@gmail.com>2018-12-06 19:46:12 +0300
commitd8e7e84d66feddb147efb46a6a829cdf6cf89282 (patch)
tree83de234be0dd5aa26aa84e4956eb19fb52ea66c1 /doc/development
parent3a953f287b3437760076089bd83410e0430c8e64 (diff)
Add section about enabling feature flag in development
Diffstat (limited to 'doc/development')
-rw-r--r--doc/development/feature_flags.md10
1 files changed, 9 insertions, 1 deletions
diff --git a/doc/development/feature_flags.md b/doc/development/feature_flags.md
index 1019a1fd0e2..b6161cd6163 100644
--- a/doc/development/feature_flags.md
+++ b/doc/development/feature_flags.md
@@ -113,7 +113,15 @@ feature flag. You can stub a feature flag as follows:
stub_feature_flags(my_feature_flag: false)
```
-## Enabling a feature flag
+## Enabling a feature flag (in development)
+
+In the rails console (`rails c`), enter the following command to enable your feature flag
+
+```ruby
+Feature.enable(:feature_flag_name)
+```
+
+## Enabling a feature flag (in production)
Check how to [roll out changes using feature flags](rolling_out_changes_using_feature_flags.md).