Closed pjmartorell closed 2 years ago
I would rather change the method children_to_snapshot
Change to return {}
I would rather change the method
children_to_snapshot
Change to
return {}
Yes, your suggestion makes more sense 👍
v0.2.1 is now released which contains this fix.
Resolves https://github.com/westonganger/active_snapshot/issues/4
Now calling
has_snapshot_children
is optional as the documentation states and it will be set as an empty hash by default. Calling it will override the default.After this change, the following condition will return always
false
, but I think it's okay to keep it just in case this default is removed in the future: https://github.com/westonganger/active_snapshot/blob/23a769fbe1f42adecbb81edf015a0c5fc518767d/lib/active_snapshot/models/concerns/snapshots_concern.rb#L41-L42