mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-19 15:48:04 +01:00
Refactore progressbar via score in application_helper
This commit is contained in:
@@ -1,2 +1,6 @@
|
||||
module ApplicationHelper
|
||||
|
||||
def score
|
||||
current_user.habits.sum('score').to_i
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user