vegantech/sims

View on GitHub
lib/create_training_district.rb

Summary

Maintainability
A
1 hr
Test Coverage

Method create_with_schools_and_users has 30 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  def self.create_with_schools_and_users(abbrev,name)
    td=District.create!(:abbrev=>abbrev, :name =>name, :forgot_password => true)
    ActiveRecord::Base.transaction do
    td.send :create_admin_user
    #alpha elementary
Severity: Minor
Found in lib/create_training_district.rb - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status