Patch #27625 » role.patch
role.rb (revision 4) | ||
---|---|---|
81 | 81 | |
82 | 82 |
validates_presence_of :name |
83 | 83 |
validates_uniqueness_of :name |
84 |
validates_length_of :name, :maximum => 30
|
|
84 |
validates_length_of :name, :maximum => 255
|
|
85 | 85 |
validates_inclusion_of :issues_visibility, |
86 | 86 |
:in => ISSUES_VISIBILITY_OPTIONS.collect(&:first), |
87 | 87 |
:if => lambda {|role| role.respond_to?(:issues_visibility) && role.issues_visibility_changed?} |