Skip to content

Commit

Permalink
Use 'attributes[:params]' instead of 'params' in the example about mi…
Browse files Browse the repository at this point in the history
…grating associated records in UPGRADE.md
  • Loading branch information
drjole committed Mar 20, 2024
1 parent 5ccb422 commit 8aacf41
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion UPGRADE.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ Notification.find_each do |notification|

# Extract related record to `belongs_to :record` association
# This allows ActiveRecord associations instead of querying the JSON data
# attributes[:record] = params.delete(:user) || params.delete(:account)
# attributes[:record] = attributes[:params].delete(:user) || attributes[:params].delete(:account)

attributes[:notifications_attributes] = [{
type: "#{attributes[:type]}::Notification",
Expand Down

0 comments on commit 8aacf41

Please sign in to comment.