Skip to content

Commit

Permalink
removed comment from user.rb
Browse files Browse the repository at this point in the history
  • Loading branch information
mz99 committed Jul 30, 2018
1 parent efc6ae5 commit 3239979
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion backend/app/models/user.rb
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@ def reasons_for_notifications
if broadcasts_created_since_last_login.count >= 5
reasons << :recently_created_broadcasts
end
#check to see if current_user has impressions first, current_user can't be detected
distributed_sum = self.impressions.to_a.sum {|i| i[:amount].to_f }
if self.impressions.to_a.any? {|r| r[:response] == 'positive'} && distributed_sum == 0
reasons << :no_given_amount_for_supported_broadcasts
Expand Down

0 comments on commit 3239979

Please sign in to comment.