Project

General

Profile

Actions

Patch #13498

closed

Better validation for identifier length

Added by Daniel Felix about 11 years ago. Updated over 10 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
Code cleanup/refactoring
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:

Description

Please see...
source:trunk/app/models/project.rb#L76

This could be clearer with minimum and maximum.

Example:

validates_length_of :identifier, :minimum => 1, :maximum => 100, :allow_blank => false

Actions

Also available in: Atom PDF