2021-05-07 10:45:31 +08:00
|
|
|
class Issues::UpdateForm
|
|
|
|
|
include ActiveModel::Model
|
|
|
|
|
|
2021-05-07 16:26:56 +08:00
|
|
|
attr_accessor :subject
|
2021-05-07 10:45:31 +08:00
|
|
|
|
|
|
|
|
validates :subject, presence: { message: "不能为空" }
|
|
|
|
|
|
2021-10-18 13:42:41 +08:00
|
|
|
validates :subject, length: { maximum: 200, too_long: "不能超过200个字符" }
|
2021-05-07 10:45:31 +08:00
|
|
|
|
|
|
|
|
end
|