lib/draftsman/model.rb in draftsman-0.3.4 vs lib/draftsman/model.rb in draftsman-0.3.5
- old
+ new
@@ -311,9 +311,10 @@
# If there's already a draft, update it.
if send(self.class.draft_association_name).present?
data[:object_changes] = changes_for_draftsman if track_object_changes_for_draft?
send(self.class.draft_association_name).update_attributes data
+ update_skipped_attributes
# If there's not draft, create an update draft.
else
data[:event] = 'update'
data[:object_changes] = changes_for_draftsman if track_object_changes_for_draft?
send "build_#{self.class.draft_association_name}", data