@@ -48,7 +48,7 class Project < ActiveRecord::Base | |||||
48 | validates_length_of :name, :maximum => 30 |
|
48 | validates_length_of :name, :maximum => 30 | |
49 | validates_format_of :name, :with => /^[\w\s\'\-]*$/i |
|
49 | validates_format_of :name, :with => /^[\w\s\'\-]*$/i | |
50 | validates_length_of :description, :maximum => 255 |
|
50 | validates_length_of :description, :maximum => 255 | |
51 |
validates_length_of :homepage, :maximum => |
|
51 | validates_length_of :homepage, :maximum => 60 | |
52 | validates_length_of :identifier, :in => 3..12 |
|
52 | validates_length_of :identifier, :in => 3..12 | |
53 | validates_format_of :identifier, :with => /^[a-z0-9\-]*$/ |
|
53 | validates_format_of :identifier, :with => /^[a-z0-9\-]*$/ | |
54 |
|
54 |
General Comments 0
You need to be logged in to leave comments.
Login now