提交 2fc82392 编写于 作者: Z Zachary Scott

Merge pull request #16156 from mechanicles/document-improvement

[ci skip] Improve documentation consistency for ActiveModel::Errors
......@@ -23,7 +23,7 @@ module ActiveModel
# attr_reader :errors
#
# def validate!
# errors.add(:name, "cannot be nil") if name == nil
# errors.add(:name, "cannot be nil") if name.nil?
# end
#
# # The following methods are needed to be minimally implemented
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册