mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-17 10:15:57 +08:00
FIX 修复易修标题过长导致排版问题
This commit is contained in:
11
app/forms/issues/create_form.rb
Normal file
11
app/forms/issues/create_form.rb
Normal file
@@ -0,0 +1,11 @@
|
||||
class Issues::CreateForm
|
||||
include ActiveModel::Model
|
||||
|
||||
attr_accessor :subject
|
||||
|
||||
validates :subject, presence: { message: "不能为空" }
|
||||
|
||||
validates :subject, length: { maximum: 80, too_long: "不能超过80个字符" }
|
||||
|
||||
|
||||
end
|
||||
10
app/forms/issues/update_form.rb
Normal file
10
app/forms/issues/update_form.rb
Normal file
@@ -0,0 +1,10 @@
|
||||
class Issues::UpdateForm
|
||||
include ActiveModel::Model
|
||||
|
||||
attr_accessor :subject
|
||||
|
||||
validates :subject, presence: { message: "不能为空" }
|
||||
|
||||
validates :subject, length: { maximum: 80, too_long: "不能超过80个字符" }
|
||||
|
||||
end
|
||||
Reference in New Issue
Block a user