1
0
Fork 0
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:
Zachary Scott 2014-07-13 22:23:27 -07:00
commit 2fc823924a

View file

@ -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