role.patch

Aleksandar Pavic, 2017-11-23 11:19

Download (510 Bytes)

View differences:

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?}