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
9ccf1d80
Commit
9ccf1d80
authored
Sep 29, 2020
by
Sean McGivern
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add feature categories to controllers beginning with C
parent
9b0eecd8
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
1 deletion
+3
-1
app/controllers/confirmations_controller.rb
app/controllers/confirmations_controller.rb
+2
-0
spec/controllers/every_controller_spec.rb
spec/controllers/every_controller_spec.rb
+1
-1
No files found.
app/controllers/confirmations_controller.rb
View file @
9ccf1d80
...
...
@@ -3,6 +3,8 @@
class
ConfirmationsController
<
Devise
::
ConfirmationsController
include
AcceptsPendingInvitations
feature_category
:users
,
only:
[
:new
,
:show
,
:create
,
:almost_there
]
def
almost_there
flash
[
:notice
]
=
nil
render
layout:
"devise_empty"
...
...
spec/controllers/every_controller_spec.rb
View file @
9ccf1d80
...
...
@@ -23,7 +23,7 @@ RSpec.describe "Every controller" do
let_it_be
(
:routes_without_category
)
do
controller_actions
.
map
do
|
controller
,
action
|
next
if
controller
.
feature_category_for_action
(
action
)
next
unless
controller
.
to_s
.
start_with?
(
'B'
)
next
unless
controller
.
to_s
.
start_with?
(
'B'
,
'C'
)
"
#{
controller
}
#
#{
action
}
"
end
.
compact
...
...
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