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