1 |
commit: 2a32f6bb142f57163ac3da2c90f3b13b21ce6ed2 |
2 |
Author: Joachim Filip Ignacy Bartosik <jbartosik <AT> gmail <DOT> com> |
3 |
AuthorDate: Tue Jul 26 15:33:31 2011 +0000 |
4 |
Commit: Petteri Räty <betelgeuse <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Aug 1 10:19:42 2011 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/council-webapp.git;a=commit;h=2a32f6bb |
7 |
|
8 |
Add line in site/app/models/proxy.rb for better readability |
9 |
|
10 |
--- |
11 |
site/app/models/proxy.rb | 1 + |
12 |
1 files changed, 1 insertions(+), 0 deletions(-) |
13 |
|
14 |
diff --git a/site/app/models/proxy.rb b/site/app/models/proxy.rb |
15 |
index 00630f8..cb6052d 100644 |
16 |
--- a/site/app/models/proxy.rb |
17 |
+++ b/site/app/models/proxy.rb |
18 |
@@ -50,6 +50,7 @@ class Proxy < ActiveRecord::Base |
19 |
return if council_member.nil? |
20 |
errors.add(:council_member, 'must be council member') unless council_member.council_member? |
21 |
end |
22 |
+ |
23 |
def proxy_must_not_be_council_member |
24 |
return if proxy.nil? |
25 |
errors.add(:proxy, 'must not be council member') if proxy.council_member? |