BathHacked/energy-sparks

View on GitHub
app/models/funder.rb

Summary

Maintainability
A
1 hr
Test Coverage

Method funded_school_counts has 28 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  def self.funded_school_counts(visible: true, data_enabled: true)
    query = <<-SQL.squish
      SELECT funders.name, count(funded_schools.id)
      FROM funders LEFT JOIN (
        SELECT funders.id AS funder_id, schools.id AS id
Severity: Minor
Found in app/models/funder.rb - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status