app/models/journaled/change_writer.rb in journaled-3.1.0 vs app/models/journaled/change_writer.rb in journaled-4.0.0

- old
+ new

@@ -25,11 +25,11 @@ table_name: model.class.table_name, record_id: model.id.to_s, database_operation: database_operation, logical_operation: logical_operation, changes: JSON.dump(changes), - journaled_app_name: journaled_app_name, + journaled_stream_name: journaled_stream_name, journaled_enqueue_opts: model.journaled_enqueue_opts, actor: actor_uri, ) end @@ -55,13 +55,13 @@ change_hash.each_with_object({}) do |(k, v), result| result[k] = v[index] end end - def journaled_app_name - if model.class.respond_to?(:journaled_app_name) - model.class.journaled_app_name + def journaled_stream_name + if model.class.respond_to?(:journaled_stream_name) + model.class.journaled_stream_name else - Journaled.default_app_name + Journaled.default_stream_name end end end