From af3ecb3772f9ecc70c74ddb120b7ae6b0e95a6cf Mon Sep 17 00:00:00 2001 From: Jorge Manrubia Date: Tue, 6 May 2025 11:50:18 +0200 Subject: [PATCH] Add missing validation --- app/models/command/go_to_card.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/models/command/go_to_card.rb b/app/models/command/go_to_card.rb index 608a6049b..06508c129 100644 --- a/app/models/command/go_to_card.rb +++ b/app/models/command/go_to_card.rb @@ -1,6 +1,8 @@ class Command::GoToCard < Command store_accessor :data, :card_id + validates_presence_of :card_id + def title "Visit card '#{card.title}'" end