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:
authorDouwe Maan <douwe@gitlab.com>2018-12-07 12:17:58 +0300
committerDouwe Maan <douwe@gitlab.com>2018-12-07 12:17:58 +0300
commit7d564029e1226e8eb12c2de67124311466170fab (patch)
tree36c870aceda0612eeb302fa2080006c960f287e3 /doc/development
parent7c4e996c74394708f8f7ebe3b4c90da936c014c8 (diff)
parentd8e7e84d66feddb147efb46a6a829cdf6cf89282 (diff)
Merge branch 'docs-feature-flag-dev' into 'master'
Add section about enabling feature flag in development See merge request gitlab-org/gitlab-ce!23634
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).