From 8b024299f9ffe29a917fcc1538b2d03265f0ec61 Mon Sep 17 00:00:00 2001 From: Rodrigo Souto Date: Mon, 12 Jan 2015 13:08:13 -0300 Subject: [PATCH] suggestions: update use of RULES on stoa plugin --- plugins/stoa/lib/ext/profile_suggestion.rb | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/plugins/stoa/lib/ext/profile_suggestion.rb b/plugins/stoa/lib/ext/profile_suggestion.rb index 010c0ec..ab50b84 100644 --- a/plugins/stoa/lib/ext/profile_suggestion.rb +++ b/plugins/stoa/lib/ext/profile_suggestion.rb @@ -4,10 +4,9 @@ class ProfileSuggestion CATEGORIES.merge!({:common_classroom => _('Classroom in common')}) - RULES += %w[ - people_with_common_classroom - ] - + RULES[:people_with_common_classroom] = { + :threshold => 2, :weight => 1, :connection => 'Profile' + } def self.people_with_common_classroom(person) usp_id = person.usp_id return if usp_id.nil? -- libgit2 0.21.2