Skip to content

Commit 1ba7424

Browse files
authored
Merge pull request #6041 from nhsuk/fix-broken-import-specs
Attempt to fix broken specs on `next`
2 parents 655abe4 + fea8f4a commit 1ba7424

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

app/models/patient.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -757,9 +757,9 @@ def dup_for_pending_changes
757757
end
758758
end
759759

760-
def apply_pending_changes_to_new_record!
760+
# This method overrides the implementation in `PendingChangesConcern`
761+
def apply_pending_changes_to_new_record!(changeset:)
761762
new_record = nil
762-
changeset = changesets.includes(:import).order(:created_at).last
763763

764764
ActiveRecord::Base.transaction do
765765
new_record = super

0 commit comments

Comments
 (0)