app/services/schools/funder_allocation_report_service.rb
Method csv
has 52 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def csv
CSV.generate(headers: true) do |csv|
csv << self.class.csv_headers
school_ids = School.active.pluck(:id) + School.archived.pluck(:id)
Method csv_headers
has 38 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def csv_headers
[
'School group',
'School name',
'School type',