refactors conflictive debates

This commit is contained in:
rgarcia
2015-09-07 17:43:48 +02:00
parent f9304e5fd1
commit bb5e18e609

View File

@@ -136,7 +136,7 @@ class Debate < ActiveRecord::Base
def conflictive? def conflictive?
return false unless flags_count > 0 && cached_votes_up > 0 return false unless flags_count > 0 && cached_votes_up > 0
flags_count / cached_votes_up.to_f > 0.2 cached_votes_up/flags_count.to_f < 5
end end
protected protected