Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boxiang Sun
gitlab-ce
Commits
d8e7e84d
Commit
d8e7e84d
authored
Dec 06, 2018
by
Clement Ho
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add section about enabling feature flag in development
parent
3a953f28
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletion
+9
-1
doc/development/feature_flags.md
doc/development/feature_flags.md
+9
-1
No files found.
doc/development/feature_flags.md
View file @
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
)
.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment