diff options
author | Luke Shumaker <LukeShu@sbcglobal.net> | 2014-03-06 23:06:58 -0500 |
---|---|---|
committer | Luke Shumaker <LukeShu@sbcglobal.net> | 2014-03-06 23:06:58 -0500 |
commit | ec351b90e1682541062c669a3f8b59131351b0a3 (patch) | |
tree | 0b0ae7fd6fb940a30794dce0a93afccd3d9f3af5 /app/controllers | |
parent | 01c3f1af652fb32c235ad1c047d652e5148dba94 (diff) |
provide a default value for users' groups
Diffstat (limited to 'app/controllers')
-rw-r--r-- | app/controllers/users_controller.rb | 2 |
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 |