Add section about enabling feature flag in development

This commit is contained in:
Clement Ho 2018-12-06 16:46:12 +00:00
parent 3a953f287b
commit d8e7e84d66
1 changed files with 9 additions and 1 deletions

View File

@ -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).