Ruby
Update changes from nested relations with ActiveRecord
To update changes with nested relations using ActiveRecord, usetouch
and after_touch
.
Ruby
Update changes from nested relations with Sequel
With Sequel, you can use the touch plugin to propagate the changes:Ruby