diff options
-rw-r--r-- | site/app/models/proxy.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/site/app/models/proxy.rb b/site/app/models/proxy.rb index 00630f8..cb6052d 100644 --- a/site/app/models/proxy.rb +++ b/site/app/models/proxy.rb @@ -50,6 +50,7 @@ class Proxy < ActiveRecord::Base return if council_member.nil? errors.add(:council_member, 'must be council member') unless council_member.council_member? end + def proxy_must_not_be_council_member return if proxy.nil? errors.add(:proxy, 'must not be council member') if proxy.council_member? |