@@ -32,7 +32,7 class CustomField < ActiveRecord::Base | |||
|
32 | 32 | validates_presence_of :name, :field_format |
|
33 | 33 | validates_uniqueness_of :name, :scope => :type |
|
34 | 34 | validates_length_of :name, :maximum => 30 |
|
35 |
validates_length_of :regexp, maximum: |
|
|
35 | validates_length_of :regexp, maximum: 255 | |
|
36 | 36 | validates_inclusion_of :field_format, :in => Proc.new { Redmine::FieldFormat.available_formats } |
|
37 | 37 | validate :validate_custom_field |
|
38 | 38 | attr_protected :id |
General Comments 0
You need to be logged in to leave comments.
Login now