Skip to content

Commit

Permalink
chores
Browse files Browse the repository at this point in the history
  • Loading branch information
Waishnav committed Aug 18, 2024
1 parent 3a76984 commit bf9b0a4
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
1 change: 0 additions & 1 deletion app/models/forum_post.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ class ForumPost < ApplicationRecord
belongs_to :user
has_many :spam_reports, dependent: :destroy

validate :clean_body
validates :user_id, :body, presence: true
validate :clean_body, if: -> { SimpleDiscussion.profanity_filter }

Expand Down
1 change: 0 additions & 1 deletion app/models/forum_thread.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
class ForumThread < ApplicationRecord
extend FriendlyId
friendly_id :title, use: :slugged
validate :clean_title

belongs_to :forum_category
belongs_to :user
Expand Down

0 comments on commit bf9b0a4

Please sign in to comment.