Refactore progressbar via score in application_helper

This commit is contained in:
Tyler Renelle
2012-02-04 16:39:56 -05:00
parent 88e105a442
commit 3abcf468e9
6 changed files with 8 additions and 15 deletions

View File

@@ -1,2 +1,6 @@
module ApplicationHelper
def score
current_user.habits.sum('score').to_i
end
end