Skip to content

Commit 4f53012

Browse files
authored
Merge pull request #6563 from NHSDigital/remove-unused-update
Remove update action from import controllers
2 parents 1f2624e + 9e16d9e commit 4f53012

3 files changed

Lines changed: 3 additions & 21 deletions

File tree

app/controllers/class_imports_controller.rb

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ class ClassImportsController < ApplicationController
55

66
before_action :set_draft_import, only: %i[new create]
77
before_action :set_class_import,
8-
only: %i[show update approve cancel re_review imported_records]
8+
only: %i[show approve cancel re_review imported_records]
99
before_action :set_open_sections, only: %i[show]
1010
before_action :set_review_records, only: %i[re_review imported_records]
1111

@@ -84,12 +84,6 @@ def show
8484
}
8585
end
8686

87-
def update
88-
@class_import.process!
89-
90-
redirect_to class_import_path(@class_import)
91-
end
92-
9387
def re_review
9488
render template: "imports/re_review",
9589
layout: "full",

app/controllers/cohort_imports_controller.rb

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ class CohortImportsController < ApplicationController
55

66
before_action :set_draft_import, only: %i[new create]
77
before_action :set_cohort_import,
8-
only: %i[show update approve cancel re_review imported_records]
8+
only: %i[show approve cancel re_review imported_records]
99
before_action :set_open_sections, only: %i[show]
1010
before_action :set_review_records, only: %i[re_review imported_records]
1111

@@ -89,12 +89,6 @@ def show
8989
}
9090
end
9191

92-
def update
93-
@cohort_import.process!
94-
95-
redirect_to cohort_import_path(@cohort_import)
96-
end
97-
9892
def re_review
9993
render template: "imports/re_review",
10094
layout: "full",

app/controllers/immunisation_imports_controller.rb

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
class ImmunisationImportsController < ApplicationController
44
include Pagy::Backend
55

6-
before_action :set_immunisation_import, only: %i[show update]
6+
before_action :set_immunisation_import, only: %i[show]
77

88
skip_after_action :verify_policy_scoped, only: %i[new create]
99

@@ -56,12 +56,6 @@ def show
5656
}
5757
end
5858

59-
def update
60-
@immunisation_import.process!
61-
62-
redirect_to immunisation_import_path(@immunisation_import)
63-
end
64-
6559
private
6660

6761
def type

0 commit comments

Comments
 (0)