GabeStah / vcp

0 stars 0 forks source link

Use background process for Statistics calculation. #65

Closed GabeStah closed 10 years ago

GabeStah commented 10 years ago

Create Statistic model to house all appropriate data.

def key(*args)
  all = args.map { |arg| arg.to_s.downcase }
  all.sort if all
  all.join('_')
end

Outputs:

>> Standing.key(:raids, :absent, :total)
"absent_raids_total"