Sha256: 09cb76e43819d0353115e8814794a557ba58ef152c76e4946011965f93294012
Contents?: true
Size: 275 Bytes
Versions: 2
Compression:
Stored size: 275 Bytes
Contents
class Post < ActiveRecord::Base include ActiveSnapshot has_many :comments has_many :notes has_snapshot_children do instance = self.class.includes(:comments, :notes).find(id) { comments: instance.comments, notes: instance.notes, } end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
active_snapshot-0.2.1 | test/dummy_app/app/models/post.rb |
active_snapshot-0.2.0 | test/dummy_app/app/models/post.rb |