aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoachim Filip Ignacy Bartosik <jbartosik@gmail.com>2011-07-26 17:33:31 +0200
committerJoachim Filip Ignacy Bartosik <jbartosik@gmail.com>2011-08-01 12:19:42 +0200
commit2a32f6bb142f57163ac3da2c90f3b13b21ce6ed2 (patch)
tree7e46a72f8556bc8b1b32d43608074b9ce9bf1681
parentA little cleanup in User class (diff)
downloadcouncil-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.rb1
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?