From 11f5434a8c0226801e14f7b1dc7caca82427e28d Mon Sep 17 00:00:00 2001 From: Georg Ledermann Date: Sat, 27 Aug 2016 08:42:45 +0200 Subject: Fix typo in deprecation message This fixes a copy-and-paste-issue slipped in by #18996 --- 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 45ef14013a..191039f598 100644 --- a/activemodel/lib/active_model/errors.rb +++ b/activemodel/lib/active_model/errors.rb @@ -372,7 +372,7 @@ module ActiveModel To achieve the same use: - errors.add(attribute, :empty, options) if value.blank? + errors.add(attribute, :blank, options) if value.blank? MESSAGE Array(attributes).each do |attribute| -- cgit v1.2.3