36825.diff

Go MAEDA, 2022-03-23 00:32

Download (551 Bytes)

View differences:

app/models/user.rb (作業コピー)
103 103
  attr_accessor :remote_ip
104 104

  
105 105
  LOGIN_LENGTH_LIMIT = 60
106
  MAIL_LENGTH_LIMIT = 60
106
  MAIL_LENGTH_LIMIT = 254
107 107

  
108 108
  validates_presence_of :login, :firstname, :lastname, :if => Proc.new {|user| !user.is_a?(AnonymousUser)}
109 109
  validates_uniqueness_of :login, :if => Proc.new {|user| user.login_changed? && user.login.present?}, :case_sensitive => false