From 1946cd1ab3443d0cd5f6f6627a63dd5399aa122e Mon Sep 17 00:00:00 2001 From: wvengen Date: Wed, 2 Oct 2013 23:33:24 +0200 Subject: [PATCH] make user creation possible again --- app/models/user.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/models/user.rb b/app/models/user.rb index 33ae49cf..5bbb6b8d 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -28,7 +28,7 @@ class User < ActiveRecord::Base validates_presence_of :email validates_presence_of :password, :on => :create validates_length_of :nick, :in => 2..25, :allow_nil => true - validates_uniqueness_of :nick, :case_sensitive => false + validates_uniqueness_of :nick, :case_sensitive => false, :allow_nil => true validates_format_of :email, :with => /^([^@\s]+)@((?:[-a-z0-9]+\.)+[a-z]{2,})$/i validates_uniqueness_of :email, :case_sensitive => false validates_length_of :first_name, :in => 2..50