docs/publishing.md in table_sync-6.0 vs docs/publishing.md in table_sync-6.0.2
- old
+ new
@@ -39,10 +39,27 @@
class SomeOtherModel < Sequel::Model
TableSync.sync(self)
end
```
+### Non persisted record destruction
+
+Sometimes destroy event can happen for non persisted record. In this case we can expect the following:
+
+For Sequel: 'Sequel::NoExistingObject' is raised. (This is default Sequel behaviour)
+For Active Record: Publishing is skipped.
+
+Example:
+
+```ruby
+ # ActiveRecord
+ user = User.new.destroy! # Publishing is skipped.
+
+ # Sequel
+ user = User.new.destroy! # raise Sequel::NoExistingObject
+```
+
## Manual
Directly call one of the publishers. It's the best if you need to sync a lot of data.
This way you don't even need for the changes to occur.
@@ -58,6 +75,6 @@
## Read More
- [Publishers](publishing/publishers.md)
- [Configuration](publishing/configuration.md)
-- [Manual Sync (examples)](publishing/manual.md)
\ No newline at end of file
+- [Manual Sync (examples)](publishing/manual.md)