Add missing blank content validation

This commit is contained in:
Jorge Manrubia
2025-11-03 10:57:35 +01:00
parent 30a825a634
commit 1d6cc37bb4
+2
View File
@@ -3,6 +3,8 @@ class Step < ApplicationRecord
scope :completed, -> { where(completed: true) }
validates :content, presence: true
def completed?
completed
end