lib/party_bus/models/concerns/publishable.rb in party_bus-0.1.13 vs lib/party_bus/models/concerns/publishable.rb in party_bus-0.1.14
- old
+ new
@@ -32,10 +32,12 @@
def pb_after_destroy
self.class.pb_create_event(**pb_serialize("destroyed"))
end
def self.pb_create_event(attributes)
- PartyBus::Events::Create.perform_using(**attributes)
+ PartyBus::Events::Create.perform_using(**attributes)
+ rescue
+ puts "PartyBus: Something went wrong"
end
# This method is overrideable in case the resource name in party bus differs
# from the model name. By default we just use the model name.
def pb_resource_name