We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 655abe4 + fea8f4a commit 1ba7424Copy full SHA for 1ba7424
1 file changed
app/models/patient.rb
@@ -757,9 +757,9 @@ def dup_for_pending_changes
757
end
758
759
760
- def apply_pending_changes_to_new_record!
+ # This method overrides the implementation in `PendingChangesConcern`
761
+ def apply_pending_changes_to_new_record!(changeset:)
762
new_record = nil
- changeset = changesets.includes(:import).order(:created_at).last
763
764
ActiveRecord::Base.transaction do
765
new_record = super
0 commit comments