openSUSE/osem

View on GitHub
app/controllers/admin/conferences_controller.rb

Summary

Maintainability
A
3 hrs
Test Coverage

Method index has 42 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    def index
      # Redirect to new form if there is no conference
      if Conference.count == 0
        redirect_to new_admin_conference_path
        return
Severity: Minor
Found in app/controllers/admin/conferences_controller.rb - About 1 hr to fix

    Method show has 36 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

        def show
          @program = @conference.program || Program.new(conference_id: @conference.id)
    
          # Overview and since last login information
          @total_reg = @conference.registrations.count
    Severity: Minor
    Found in app/controllers/admin/conferences_controller.rb - About 1 hr to fix

      There are no issues that match your filters.

      Category
      Status