Skip to content

Commit

Permalink
[RUBY-3387] Remove ids from do not copy attributes as id is automatic…
Browse files Browse the repository at this point in the history
…ally ignored
  • Loading branch information
jjromeo committed Oct 18, 2024
1 parent d0c38e3 commit 411353f
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 4 deletions.
1 change: 0 additions & 1 deletion app/models/waste_carriers_engine/past_registration.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ class PastRegistration
embedded_in :registration, class_name: "WasteCarriersEngine::Registration"

NON_COPYABLE_ATTRIBUTES = %w[
_id
accountEmail
past_registrations
locking_name
Expand Down
3 changes: 1 addition & 2 deletions app/models/waste_carriers_engine/renewing_registration.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@ class RenewingRegistration < TransientRegistration
field :from_magic_link, type: Boolean

COPY_DATA_OPTIONS = {
ignorable_attributes: %w[_id
accountEmail
ignorable_attributes: %w[accountEmail
constructionWaste
contactEmail
conviction_search_result
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,6 @@ def copy_data_from_transient_registration
transient_registration.reload

do_not_copy_attributes = %w[
_id
conviction_search_result
conviction_sign_offs
created_at
Expand Down

0 comments on commit 411353f

Please sign in to comment.