app/models/department_observer.rb
Method after_create
has 26 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def after_create(department)
DepartmentConfig.create!({department_id: department.id,
schedule_start: 9*60,
schedule_end: 17*60,
time_increment: 15,