mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-03 20:00:49 +08:00
12 lines
233 B
Ruby
12 lines
233 B
Ruby
class Issues::CreateForm
|
|
include ActiveModel::Model
|
|
|
|
attr_accessor :subject
|
|
|
|
validates :subject, presence: { message: "不能为空" }
|
|
|
|
validates :subject, length: { maximum: 200, too_long: "不能超过200个字符" }
|
|
|
|
|
|
end
|