aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZachary Scott <e@zzak.io>2014-07-13 22:23:27 -0700
committerZachary Scott <e@zzak.io>2014-07-13 22:23:27 -0700
commit2fc823924ae2e68c1306be1418ee6a14132f3140 (patch)
treed9405b99a5036e3c240db8f23af2328b8bf7b2e4
parent9386ddfd40fcaddc0481ae2d331708247f10ba08 (diff)
parentc890f4f8b24751c09da0a9d6972f08f39ea0fa4b (diff)
downloadrails-2fc823924ae2e68c1306be1418ee6a14132f3140.tar.gz
rails-2fc823924ae2e68c1306be1418ee6a14132f3140.tar.bz2
rails-2fc823924ae2e68c1306be1418ee6a14132f3140.zip
Merge pull request #16156 from mechanicles/document-improvement
[ci skip] Improve documentation consistency for ActiveModel::Errors
-rw-r--r--activemodel/lib/active_model/errors.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activemodel/lib/active_model/errors.rb b/activemodel/lib/active_model/errors.rb
index 917d3b9142..1d025beeef 100644
--- a/activemodel/lib/active_model/errors.rb
+++ b/activemodel/lib/active_model/errors.rb
@@ -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