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
1
Merge Requests
1
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
nexedi
gitlab-ce
Commits
a1c10223
Commit
a1c10223
authored
Oct 02, 2018
by
Kamil Trzciński
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix controller status rubocop rules
parent
d2686fe9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
7 deletions
+5
-7
ee/app/controllers/projects/feature_flags_controller.rb
ee/app/controllers/projects/feature_flags_controller.rb
+5
-7
No files found.
ee/app/controllers/projects/feature_flags_controller.rb
View file @
a1c10223
...
...
@@ -21,8 +21,7 @@ class Projects::FeatureFlagsController < Projects::ApplicationController
@feature_flag
=
project
.
operations_feature_flags
.
create
(
create_params
)
if
@feature_flag
.
persisted?
flash
[
:notice
]
=
'Feature flag was successfully created.'
redirect_to
project_feature_flags_path
(
@project
)
redirect_to
project_feature_flags_path
(
@project
),
status:
302
,
notice:
'Feature flag was successfully created.'
else
render
:new
end
...
...
@@ -33,8 +32,7 @@ class Projects::FeatureFlagsController < Projects::ApplicationController
def
update
if
feature_flag
.
update
(
update_params
)
flash
[
:notice
]
=
'Feature flag was successfully updated.'
redirect_to
project_feature_flags_path
(
@project
)
redirect_to
project_feature_flags_path
(
@project
),
status:
302
,
notice:
'Feature flag was successfully updated.'
else
render
:edit
end
...
...
@@ -42,10 +40,10 @@ class Projects::FeatureFlagsController < Projects::ApplicationController
def
destroy
if
feature_flag
.
destroy
flash
[
:notice
]
=
'Feature flag was successfully removed.'
redirect_to
project_feature_flags_path
(
@project
),
status:
302
,
notice:
'Feature flag was successfully removed.'
else
redirect_to
project_feature_flags_path
(
@project
),
status:
302
,
alert:
'Feature flag was not removed.'
end
redirect_to
project_feature_flags_path
(
@project
)
end
protected
...
...
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