summaryrefslogtreecommitdiff
path: root/app/models/user.rb
diff options
context:
space:
mode:
authorLuke Shumaker <shumakl@purdue.edu>2014-04-04 20:44:43 -0400
committerLuke Shumaker <shumakl@purdue.edu>2014-04-04 20:44:43 -0400
commit38d6960be1efdb6345445ab293a8cd605193785f (patch)
treedf37e79b5744b570aded5aa4d7fe38cd772a49fe /app/models/user.rb
parentbcfa571b0328a4b3e94479a31c027621ceb86ad5 (diff)
parentd14dcf9af11a0f2eab2609efb7d9e59a9cc18bb0 (diff)
Merge branch 'master' into luke
Conflicts: app/controllers/application_controller.rb app/controllers/tournaments_controller.rb
Diffstat (limited to 'app/models/user.rb')
-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 1d0879b..d1698bd 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 }