does not create notifications for blocked or erased users

This commit is contained in:
rgarcia
2016-08-02 20:35:33 +02:00
parent 99b9c3867e
commit 9d9bf488fc
5 changed files with 112 additions and 1 deletions

View File

@@ -99,7 +99,7 @@ class Proposal < ActiveRecord::Base
end
def voters
votes_for.voters
User.active.where(id: votes_for.voters)
end
def editable?