app/models/applications/application_for_offering.rb
# Calculates the spread of the non-zero scores of this application's ApplicationReviewers by default, 
# or of this application's interviewers if you pass ":interviewers => true". 
# Only used for Offerings that use a scored review process.
Calculates the spread of the non-zero scores of this application's ApplicationReviewers by default,
or of this application's interviewers if you pass ":interviewers => true".
Only used for Offerings that use a scored review process.
Calculates the spread of the non - zero scores of this application ' s ApplicationReviewers by default or of this application ' s interviewers if you pass " : interviewers = > true " . Only used for Offerings that use a scored review process .
def score_spread(options = {})
    if options[:interviewers]
      interviewers.find(:all, :conditions => { :committee_score => false }).collect(&:total_score).compact.reject{|s| s.zero?}.spread rescue 0.0/0.0
    else
      reviewers.without_committee_scores.collect(&:total_score).compact.reject{|s| s.zero?}.spread rescue 0.0/0.0
    end
  end
def score_spread ( options = { } ) if options [ :interviewers ] interviewers . find ( :all , :conditions => { :committee_score => false } ) . collect ( & :total_score ) . compact . reject { | s | s . zero? } . spread rescue 0.0 / 0.0 else reviewers . without_committee_scores . collect ( & :total_score ) . compact . reject { | s | s . zero? } . spread rescue 0.0 / 0.0 end end
Calculates the spread of the non-zero scores of this application's ApplicationReviewers by default,
or of this application's interviewers if you pass ":interviewers => true".
Calculates the spread of the non - zero scores of this application ' s ApplicationReviewers by default or of this application ' s interviewers if you pass " : interviewers = > true " .
options