sqm-dashboards/config/initializers/array_monkey_patches.rb
Nelson Jovel ad03606d66 Add benchmarks to survey and admin data items. Remove them from measures. Modify seeder
Calculate benchmarks for measures based on a weighted average of survey
and admin data items

Added architectural records
2021-12-28 14:10:34 +01:00

7 lines
104 B
Ruby

module ArrayMonkeyPatches
def average
sum.to_f / size
end
end
Array.include ArrayMonkeyPatches