Remove transaction as the AI commands can hold the transaction for too long

This commit is contained in:
Jorge Manrubia
2025-07-24 15:53:10 +02:00
parent 5ad2d09eae
commit ba97ec05d6
+2 -6
View File
@@ -5,15 +5,11 @@ class Command::Composite < Command
has_many :commands, inverse_of: :parent, dependent: :destroy
def execute
ApplicationRecord.transaction do
commands.collect { it.execute }
end
commands.collect { it.execute }
end
def undo
ApplicationRecord.transaction do
undoable_commands.collect { it.undo }
end
undoable_commands.collect { it.undo }
end
def undoable?