YaleSTC/shifts

View on GitHub
app/models/department_observer.rb

Summary

Maintainability
A
1 hr
Test Coverage

Method after_create has 26 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  def after_create(department)
    DepartmentConfig.create!({department_id: department.id,
                        schedule_start: 9*60,
                        schedule_end: 17*60,
                        time_increment: 15,
Severity: Minor
Found in app/models/department_observer.rb - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status