Sorts out a problem with the description field and adding users.
This commit is contained in:
parent
6644f115c9
commit
b2515ec75e
1 changed files with 2 additions and 1 deletions
|
@ -14,6 +14,7 @@ class UserController < ApplicationController
|
|||
@user = User.new(params[:user])
|
||||
|
||||
@user.data_public = true
|
||||
@user.description = "" if @user.description.nil?
|
||||
|
||||
if @user.save
|
||||
token = @user.tokens.create
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue