class User < ActiveRecord::Base
  .
  .
  . 
  validates_length_of :email, :maximum => EMAIL_MAX_LENGTH , :message => "jest zbyt dugi."
  validates_format_of :screen_name,
                      :with => /^[A-Z󜟿ʣӌ0-9_]*$/i,
                      :message => "moe zawiera tylko litery, " + "cyfry i znaki podkrelenia."
  validates_format_of :email,
                      :with => /^[A-Z0-9._%-]+@([A-Z0-9-]+\.)+[A-Z]{2,4}$/i,
                      :message => "musi by prawidowym adresem e-mail."
end 