From 41bb7a85645860ab82adf6a0ca52aa49137588e5 Mon Sep 17 00:00:00 2001 From: zhitomirskiyi <ilya@joindiaspora.com> Date: Thu, 3 Feb 2011 15:16:00 -0800 Subject: [PATCH] blank instead of nil --- app/models/profile.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/models/profile.rb b/app/models/profile.rb index 6ede9a15c2..709cb77448 100644 --- a/app/models/profile.rb +++ b/app/models/profile.rb @@ -23,8 +23,8 @@ class Profile < ActiveRecord::Base validates_length_of :first_name, :maximum => 32 validates_length_of :last_name, :maximum => 32 - validates_format_of :first_name, :with => /\A[^;]+\z/, :allow_nil => true - validates_format_of :last_name, :with => /\A[^;]+\z/, :allow_nil => true + validates_format_of :first_name, :with => /\A[^;]+\z/, :allow_blank => true + validates_format_of :last_name, :with => /\A[^;]+\z/, :allow_blank => true attr_accessible :first_name, :last_name, :image_url, :image_url_medium, :image_url_small, :birthday, :gender, :bio, :searchable, :date -- GitLab