summaryrefslogtreecommitdiff
path: root/app/controllers/users_controller.rb
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2014-03-06 23:06:58 -0500
committerLuke Shumaker <LukeShu@sbcglobal.net>2014-03-06 23:06:58 -0500
commitec351b90e1682541062c669a3f8b59131351b0a3 (patch)
tree0b0ae7fd6fb940a30794dce0a93afccd3d9f3af5 /app/controllers/users_controller.rb
parent01c3f1af652fb32c235ad1c047d652e5148dba94 (diff)
provide a default value for users' groups
Diffstat (limited to 'app/controllers/users_controller.rb')
-rw-r--r--app/controllers/users_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/users_controller.rb b/app/controllers/users_controller.rb
index 907958b..70facca 100644
--- a/app/controllers/users_controller.rb
+++ b/app/controllers/users_controller.rb
@@ -28,7 +28,7 @@ class UsersController < ApplicationController
# POST /users.json
def create
@user = User.new(user_params)
-
+ @user.groups = 0
respond_to do |format|
if @user.save
sign_in @user