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
98ebab2b
Commit
98ebab2b
authored
Apr 04, 2022
by
Rajendra Kadam
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix cop offenses in controllers
parent
30358c95
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
2 deletions
+8
-2
ee/app/controllers/ee/projects/incidents_controller.rb
ee/app/controllers/ee/projects/incidents_controller.rb
+4
-1
ee/app/controllers/ee/projects/issues_controller.rb
ee/app/controllers/ee/projects/issues_controller.rb
+4
-1
No files found.
ee/app/controllers/ee/projects/incidents_controller.rb
View file @
98ebab2b
...
...
@@ -7,7 +7,10 @@ module EE
prepended
do
before_action
do
push_licensed_feature
(
:escalation_policies
,
project
)
push_licensed_feature
(
:incident_timeline_events
)
if
project
.
licensed_feature_available?
(
:incident_timeline_events
)
if
project
.
licensed_feature_available?
(
:incident_timeline_events
)
push_licensed_feature
(
:incident_timeline_events
)
end
end
end
end
...
...
ee/app/controllers/ee/projects/issues_controller.rb
View file @
98ebab2b
...
...
@@ -17,7 +17,10 @@ module EE
before_action
only: :show
do
push_licensed_feature
(
:escalation_policies
,
project
)
push_licensed_feature
(
:incident_timeline_events
)
if
project
.
licensed_feature_available?
(
:incident_timeline_events
)
if
project
.
licensed_feature_available?
(
:incident_timeline_events
)
push_licensed_feature
(
:incident_timeline_events
)
end
end
before_action
:redirect_if_test_case
,
only:
[
:show
]
...
...
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