summaryrefslogtreecommitdiff
path: root/app/models
diff options
context:
space:
mode:
authortkimia <tkimia@purdue.edu>2014-04-03 18:03:33 -0400
committertkimia <tkimia@purdue.edu>2014-04-03 18:03:33 -0400
commit36e6db5e8fbcbeeddb6a68d702bb8a2bdc3a514a (patch)
tree2cf6a72fce43f4644dc16177a4d42fb778fb8c97 /app/models
parenteffe4608e808a385bb912fccac26381d0bd0c95a (diff)
parent91623c4f865d25c33ed64632ae61b506e0bb1ab4 (diff)
Merge branch 'master' of https://github.com/LukeShu/leaguer
Diffstat (limited to 'app/models')
-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 016c155..9a0948f 100644
--- a/app/models/user.rb
+++ b/app/models/user.rb
@@ -4,6 +4,8 @@ class User < ActiveRecord::Base
has_and_belongs_to_many :teams
has_many :sessions
+ apply_simple_captcha
+
before_save { self.email = email.downcase }
before_save { self.user_name = user_name }