Add usage summary for each device

This commit is contained in:
Leena
2016-03-15 12:21:22 +05:30
parent d243fc4b50
commit d4abf39ef1
3 changed files with 33 additions and 3 deletions

View File

@@ -28,8 +28,6 @@ ActiveAdmin.register_page "App Usage" do
app_usage[:package_name]
end
column "Total Usage" do |app_usage|
#usage_in_minutes = app_usage[:usage]/60
#(usage_in_minutes > 0) ? usage_in_minutes :"Less than a minute"
distance_of_time_in_words (app_usage[:usage])
end
end