Initial commit

This commit is contained in:
2020-06-02 23:02:01 -04:00
commit a1ade51f6b
15 changed files with 294 additions and 0 deletions

9
models/rate.rb Normal file
View File

@@ -0,0 +1,9 @@
class Rate < ActiveRecord::Base
def self.get_download
all.collect { |p| [p.created_at.strftime('%d/%m %H:%M'), p.download] }
end
def self.get_upload
all.collect { |p| [p.created_at.strftime('%d/%m %H:%M'), p.upload] }
end
end