Skip to content
Extraits de code Groupes Projets
Valider 41bb7a85 rédigé par zhitomirskiyi's avatar zhitomirskiyi
Parcourir les fichiers

blank instead of nil

parent 7668e8d2
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
......@@ -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
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter