|
|
|
|
|
|
|
|
|
|
|
|
|
|
validates_length_of :password, :maximum => 255, :allow_nil => true |
|
|
validates_length_of :password, :maximum => 255, :allow_nil => true |
|
|
validates_length_of :identifier, :maximum => IDENTIFIER_MAX_LENGTH, :allow_blank => true |
|
|
validates_length_of :identifier, :maximum => IDENTIFIER_MAX_LENGTH, :allow_blank => true |
|
|
validates_presence_of :identifier, :unless => Proc.new { |r| r.is_default? || r.set_as_default? } |
|
|
|
|
|
validates_uniqueness_of :identifier, :scope => :project_id, :allow_blank => true |
|
|
validates_uniqueness_of :identifier, :scope => :project_id, :allow_blank => true |
|
|
validates_exclusion_of :identifier, :in => %w(browse show entry raw changes annotate diff statistics graph revisions revision) |
|
|
validates_exclusion_of :identifier, :in => %w(browse show entry raw changes annotate diff statistics graph revisions revision) |
|
|
# donwcase letters, digits, dashes, underscores but not digits only |
|
|
# donwcase letters, digits, dashes, underscores but not digits only |