diff options
author | 2011-07-26 17:33:31 +0200 | |
---|---|---|
committer | 2011-08-01 12:19:42 +0200 | |
commit | 2a32f6bb142f57163ac3da2c90f3b13b21ce6ed2 (patch) | |
tree | 7e46a72f8556bc8b1b32d43608074b9ce9bf1681 | |
parent | A little cleanup in User class (diff) | |
download | council-webapp-2a32f6bb142f57163ac3da2c90f3b13b21ce6ed2.tar.gz council-webapp-2a32f6bb142f57163ac3da2c90f3b13b21ce6ed2.tar.bz2 council-webapp-2a32f6bb142f57163ac3da2c90f3b13b21ce6ed2.zip |
Add line in site/app/models/proxy.rb for better readability
-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? |