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
bddf5186
Commit
bddf5186
authored
Oct 02, 2020
by
Sean McGivern
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add feature categories to controllers beginning with N
parent
1038bc79
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
1 deletion
+4
-1
app/controllers/notification_settings_controller.rb
app/controllers/notification_settings_controller.rb
+2
-0
spec/controllers/every_controller_spec.rb
spec/controllers/every_controller_spec.rb
+2
-1
No files found.
app/controllers/notification_settings_controller.rb
View file @
bddf5186
...
@@ -3,6 +3,8 @@
...
@@ -3,6 +3,8 @@
class
NotificationSettingsController
<
ApplicationController
class
NotificationSettingsController
<
ApplicationController
before_action
:authenticate_user!
before_action
:authenticate_user!
feature_category
:users
def
create
def
create
return
render_404
unless
can_read?
(
resource
)
return
render_404
unless
can_read?
(
resource
)
...
...
spec/controllers/every_controller_spec.rb
View file @
bddf5186
...
@@ -26,7 +26,8 @@ RSpec.describe "Every controller" do
...
@@ -26,7 +26,8 @@ RSpec.describe "Every controller" do
next
if
controller
.
feature_category_for_action
(
action
)
next
if
controller
.
feature_category_for_action
(
action
)
next
unless
controller
.
to_s
.
start_with?
(
'B'
,
'C'
,
'D'
,
'E'
,
'F'
,
next
unless
controller
.
to_s
.
start_with?
(
'B'
,
'C'
,
'D'
,
'E'
,
'F'
,
'H'
,
'I'
,
'J'
,
'H'
,
'I'
,
'J'
,
'K'
,
'L'
,
'M'
,
'N'
,
'Projects::MergeRequestsController'
)
'Projects::MergeRequestsController'
)
"
#{
controller
}
#
#{
action
}
"
"
#{
controller
}
#
#{
action
}
"
...
...
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