Coursemology/coursemology2

View on GitHub
app/controllers/course/user_invitations_controller.rb

Summary

Maintainability
B
4 hrs
Test Coverage

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

class Course::UserInvitationsController < Course::ComponentController
  before_action :authorize_invitation!
  load_resource :invitation, through: :course, class: 'Course::UserInvitation', parent: false,
                             only: :destroy

Severity: Minor
Found in app/controllers/course/user_invitations_controller.rb - About 4 hrs to fix

Method parse_invitation_result has 5 arguments (exceeds 4 allowed). Consider refactoring.
Open

  def parse_invitation_result(new_invitations, existing_invitations, new_course_users,
                              existing_course_users, duplicate_users)
Severity: Minor
Found in app/controllers/course/user_invitations_controller.rb - About 35 mins to fix

There are no issues that match your filters.

Category
Status