Commit 3d62563c4a08c2850bbc30ca556c73f8da8196a2
1 parent
d3025fcf
Exists in
master
and in
1 other branch
Fix dashboard with points change
Showing
1 changed file
with
2 additions
and
1 deletions
Show diff stats
lib/gamification_plugin/dashboard_helper.rb
... | ... | @@ -12,7 +12,8 @@ module GamificationPlugin::DashboardHelper |
12 | 12 | end |
13 | 13 | |
14 | 14 | def score_point_category(point) |
15 | - HashWithIndifferentAccess.new(Merit::PointRules::AVAILABLE_RULES)[point.score.category][:description] | |
15 | + point = GamificationPlugin::PointsType.where(name: point.score.category).first | |
16 | + point.nil? ? '' : point.description | |
16 | 17 | end |
17 | 18 | |
18 | 19 | def ranking(target, from_date=nil, limit=10) | ... | ... |