Add missing blank content validation
This commit is contained in:
@@ -3,6 +3,8 @@ class Step < ApplicationRecord
|
||||
|
||||
scope :completed, -> { where(completed: true) }
|
||||
|
||||
validates :content, presence: true
|
||||
|
||||
def completed?
|
||||
completed
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user