mirror of
https://github.com/we-promise/sure.git
synced 2026-04-18 03:24:09 +00:00
Add post-sync hook (#1479)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user