Commit 7d564029 authored by Douwe Maan's avatar Douwe Maan

Merge branch 'docs-feature-flag-dev' into 'master'

Add section about enabling feature flag in development

See merge request gitlab-org/gitlab-ce!23634
parents 7c4e996c d8e7e84d
...@@ -113,7 +113,15 @@ feature flag. You can stub a feature flag as follows: ...@@ -113,7 +113,15 @@ feature flag. You can stub a feature flag as follows:
stub_feature_flags(my_feature_flag: false) 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). Check how to [roll out changes using feature flags](rolling_out_changes_using_feature_flags.md).
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