Skip to content

Commit

Permalink
remove nospam from discussion
Browse files Browse the repository at this point in the history
  • Loading branch information
robguthrie committed Jun 17, 2024
1 parent 8973d55 commit 9989838
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions app/models/discussion.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ class Discussion < ApplicationRecord
include HasCreatedEvent
include HasRichText
include HasTags
extend NoSpam
include Discard::Model

include Searchable
Expand Down Expand Up @@ -48,8 +47,6 @@ def self.pg_search_insert_statement(id: nil, author_id: nil)
SQL
end

no_spam_for :title, :description

scope :dangling, -> { joins('left join groups g on discussions.group_id = g.id').where('group_id is not null and g.id is null') }
scope :in_organisation, -> (group) { includes(:author).where(group_id: group.id_and_subgroup_ids) }
scope :last_activity_after, -> (time) { where('last_activity_at > ?', time) }
Expand Down

0 comments on commit 9989838

Please sign in to comment.