Commit e129188980020d13c1a91d6af747fbd12c7a74b4

Authored by Hugo Melo
1 parent 896b7737

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)
... ...