aboutsummaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorJoachim Filip Ignacy Bartosik <jbartosik@gmail.com>2010-07-23 18:18:57 +0200
committerJoachim Filip Ignacy Bartosik <jbartosik@gmail.com>2010-07-29 18:49:34 +0200
commitd1a1409a0f5d6e9ecea2e942de2e87628ee15a67 (patch)
tree9c7ac878094a52e7eeb588af1754ae0c995a698d /app
parentImproved way admins create questions (diff)
downloadrecruiting-webapp-d1a1409a0f5d6e9ecea2e942de2e87628ee15a67.tar.gz
recruiting-webapp-d1a1409a0f5d6e9ecea2e942de2e87628ee15a67.tar.bz2
recruiting-webapp-d1a1409a0f5d6e9ecea2e942de2e87628ee15a67.zip
Rake task prepare:lead_data
The task fetches Gentoo project leads data from gentoo.org and stores it in tmp/lead_data.yml
Diffstat (limited to 'app')
-rw-r--r--app/models/user.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/app/models/user.rb b/app/models/user.rb
index 7b9c5f7..e652e37 100644
--- a/app/models/user.rb
+++ b/app/models/user.rb
@@ -9,6 +9,7 @@ class User < ActiveRecord::Base
role Role, :default => 'recruit'
nick :string
contributions HoboFields::MarkdownString
+ project_lead :boolean, :default => false
timestamps
end
@@ -59,6 +60,7 @@ class User < ActiveRecord::Base
validate :mentor_is_gentoo_dev_long_enough
validates_uniqueness_of :nick, :if => :nick
+ never_show :project_lead
# --- Permissions --- #
def create_permitted?