We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1b4c51e commit 0e15f8fCopy full SHA for 0e15f8f
app/models/protip.rb
@@ -97,6 +97,7 @@ class Protip < ActiveRecord::Base
97
validates :body, presence: true
98
validates :kind, presence: true, inclusion: { in: KINDS }
99
validates :topic_list, length: { minimum: 1 }
100
+ validates :slug, presence: true
101
102
after_validation :tag_user
103
before_create :assign_random_id
0 commit comments