test/dummy_app/app/models/post.rb in active_snapshot-0.1.1 vs test/dummy_app/app/models/post.rb in active_snapshot-0.2.0

- old
+ new

@@ -1,13 +1,15 @@ class Post < ActiveRecord::Base include ActiveSnapshot has_many :comments + has_many :notes has_snapshot_children do - instance = self.class.includes(:comments).find(id) + instance = self.class.includes(:comments, :notes).find(id) { comments: instance.comments, + notes: instance.notes, } end end