Increased minimum title length for forum groups and forums.
This commit is contained in:
@@ -4,7 +4,7 @@ class Forum < ActiveRecord::Base
|
||||
belongs_to :role_read, class_name: "Role", foreign_key: "role_read_id"
|
||||
belongs_to :role_write, class_name: "Role", foreign_key: "role_write_id"
|
||||
has_and_belongs_to_many :labels
|
||||
validates_length_of :name, in: 2..30
|
||||
validates_length_of :name, in: 4..30
|
||||
|
||||
def to_s
|
||||
name
|
||||
|
||||
@@ -7,7 +7,7 @@ class Forumgroup < ActiveRecord::Base
|
||||
|
||||
|
||||
validates_presence_of :name, :position
|
||||
validates_length_of :name, in: 2..20
|
||||
validates_length_of :name, in: 4..20
|
||||
|
||||
def to_s
|
||||
name
|
||||
|
||||
Reference in New Issue
Block a user