Module: CompletenessFu::ActiveModelAdditions::ClassMethods

Defined in:
lib/completeness-fu/active_model_additions.rb

Instance Method Summary collapse

Instance Method Details

#max_completeness_scoreObject



40
41
42
# File 'lib/completeness-fu/active_model_additions.rb', line 40

def max_completeness_score
  self.completeness_checks.inject(0) { |score, check| score += check[:weighting] }
end