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 2179a3f commit 154867fCopy full SHA for 154867f
2 files changed
app/models/comment_thread.rb
@@ -12,7 +12,7 @@ class CommentThread < ApplicationRecord
12
scope :archived, -> { where(archived: true) }
13
14
validate :maximum_title_length
15
- validates :title, presence: true
+ validates :title, presence: { message: I18n.t('comments.errors.title_presence') }
16
17
after_create :create_follower
18
config/locales/strings/en.comments.yml
@@ -31,6 +31,8 @@ en:
31
Something went wrong when trying to undelete the comment.
32
rename_thread_generic: >
33
Failed to rename the thread.
34
+ title_presence: >
35
+ can't be empty after Markdown is removed.
36
labels:
37
create_new_thread: >
38
Start new comment thread
0 commit comments