users: don't count deleted feedbacks on profile.
This commit is contained in:
@@ -614,15 +614,15 @@ class User < ApplicationRecord
|
|||||||
end
|
end
|
||||||
|
|
||||||
def positive_feedback_count
|
def positive_feedback_count
|
||||||
feedback.positive.count
|
feedback.undeleted.positive.count
|
||||||
end
|
end
|
||||||
|
|
||||||
def neutral_feedback_count
|
def neutral_feedback_count
|
||||||
feedback.neutral.count
|
feedback.undeleted.neutral.count
|
||||||
end
|
end
|
||||||
|
|
||||||
def negative_feedback_count
|
def negative_feedback_count
|
||||||
feedback.negative.count
|
feedback.undeleted.negative.count
|
||||||
end
|
end
|
||||||
|
|
||||||
def refresh_counts!
|
def refresh_counts!
|
||||||
|
|||||||
Reference in New Issue
Block a user