swamp09/sample_app

View on GitHub
app/models/user.rb

Summary

Maintainability
A
2 hrs
Test Coverage

Class User has 22 methods (exceeds 20 allowed). Consider refactoring.
Open

class User < ApplicationRecord
  has_many :microposts, dependent: :destroy

  has_many :active_relationships, class_name: 'Relationship', foreign_key: 'follower_id', dependent: :destroy
  has_many :passive_relationships, class_name: 'Relationship', foreign_key: 'followed_id', dependent: :destroy
Severity: Minor
Found in app/models/user.rb - About 2 hrs to fix

    There are no issues that match your filters.

    Category
    Status