Add post-sync hook (#1479)

This commit is contained in:
Zach Gollwitzer
2024-11-20 11:01:52 -05:00
committed by GitHub
parent d1b506d16c
commit e641cfccd4
4 changed files with 21 additions and 14 deletions

View File

@@ -22,6 +22,10 @@ module Syncable
raise NotImplementedError, "Subclasses must implement the `sync_data` method"
end
def post_sync
# no-op, syncable can optionally provide implementation
end
def sync_error
latest_sync.error
end