From c890f4f8b24751c09da0a9d6972f08f39ea0fa4b Mon Sep 17 00:00:00 2001 From: Santosh Wadghule Date: Mon, 14 Jul 2014 01:42:18 +0530 Subject: [ci skip] Little bit doc code improvement. --- activemodel/lib/active_model/errors.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'activemodel') 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 -- cgit v1.2.3