app/models/discussion.rb
Class Discussion
has 32 methods (exceeds 20 allowed). Consider refactoring. Open
Open
class Discussion < ApplicationRecord
include WithDiscussionStatus, WithScopedQueries, Contextualization, WithResponsibleModerator
belongs_to :item, polymorphic: true
has_many :messages, -> { order(:created_at) }, dependent: :destroy