lib/grumlin/dummy_transaction.rb in grumlin-0.23.0 vs lib/grumlin/dummy_transaction.rb in grumlin-1.0.0.rc1
- old
+ new
@@ -1,25 +1,23 @@
# frozen_string_literal: true
-module Grumlin
- class DummyTransaction < Transaction
- attr_reader :uuid
+class Grumlin::DummyTransaction < Grumlin::Transaction
+ attr_reader :uuid
- include Console
+ include Console
- def initialize(traversal_start_class, middlewares:, pool: nil) # rubocop:disable Lint/MissingSuper, Lint/UnusedMethodArgument
- @traversal_start_class = traversal_start_class
+ def initialize(traversal_start_class, middlewares:, pool: nil) # rubocop:disable Lint/MissingSuper, Lint/UnusedMethodArgument
+ @traversal_start_class = traversal_start_class
- logger.info(self) do
- "#{Grumlin.config.provider} does not support transactions. commit and rollback are ignored, data will be saved"
- end
+ logger.info(self) do
+ "#{Grumlin.config.provider} does not support transactions. commit and rollback are ignored, data will be saved"
end
+ end
- def commit
- nil
- end
+ def commit
+ nil
+ end
- def rollback
- nil
- end
+ def rollback
+ nil
end
end