Handle errors in composite commands
This commit is contained in:
@@ -28,6 +28,10 @@ class Command::Composite
|
||||
commands.any?(&:needs_confirmation?)
|
||||
end
|
||||
|
||||
def valid?
|
||||
commands.all?(&:valid?)
|
||||
end
|
||||
|
||||
private
|
||||
def undoable_commands
|
||||
commands.filter(&:undoable?)
|
||||
|
||||
Reference in New Issue
Block a user