Skip to content

Commit

Permalink
fix mongoid#244 embedded attributes blocked by parent
Browse files Browse the repository at this point in the history
  • Loading branch information
vanboom committed Jun 13, 2020
1 parent e83f968 commit 112e49c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/mongoid/history/tracker.rb
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ def tracked_changes
@tracked_changes ||= (modified.keys | original.keys).inject(HashWithIndifferentAccess.new) do |h, k|
h[k] = { from: original[k], to: modified[k] }.delete_if { |_, vv| vv.nil? }
h
end.delete_if { |k, v| v.blank? || !trackable_parent_class.tracked?(k) }
end.delete_if { |k, v| v.blank? } #|| !trackable_parent_class.tracked?(k) }
end

# Outputs summary of edit actions performed: :add, :modify, :remove, or :array.
Expand Down

0 comments on commit 112e49c

Please sign in to comment.