mumuki/mumuki-domain

View on GitHub
app/models/discussion.rb

Summary

Maintainability
B
4 hrs
Test Coverage

Class Discussion has 32 methods (exceeds 20 allowed). Consider refactoring.
Open

class Discussion < ApplicationRecord
  include WithDiscussionStatus, WithScopedQueries, Contextualization, WithResponsibleModerator

  belongs_to :item, polymorphic: true
  has_many :messages, -> { order(:created_at) }, dependent: :destroy
Severity: Minor
Found in app/models/discussion.rb - About 4 hrs to fix

    There are no issues that match your filters.

    Category
    Status