aboutsummaryrefslogtreecommitdiffstats
path: root/activemodel
diff options
context:
space:
mode:
authorSantosh Wadghule <santosh.wadghule@gmail.com>2014-07-14 01:42:18 +0530
committerSantosh Wadghule <santosh.wadghule@gmail.com>2014-07-14 10:09:14 +0530
commitc890f4f8b24751c09da0a9d6972f08f39ea0fa4b (patch)
treef3ecb2acc52a73f442988aabb88104906f9297e0 /activemodel
parentccac6082bd4265f4827cc8bf9748c983d0a1c6c6 (diff)
downloadrails-c890f4f8b24751c09da0a9d6972f08f39ea0fa4b.tar.gz
rails-c890f4f8b24751c09da0a9d6972f08f39ea0fa4b.tar.bz2
rails-c890f4f8b24751c09da0a9d6972f08f39ea0fa4b.zip
[ci skip] Little bit doc code improvement.
Diffstat (limited to 'activemodel')
-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