mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Merge pull request #16156 from mechanicles/document-improvement
[ci skip] Improve documentation consistency for ActiveModel::Errors
This commit is contained in:
commit
2fc823924a
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue