aboutsummaryrefslogtreecommitdiffstats
path: root/activemodel
diff options
context:
space:
mode:
authorVijay Dev <vijaydev.cse@gmail.com>2016-08-27 16:13:07 +0530
committerGitHub <noreply@github.com>2016-08-27 16:13:07 +0530
commit187aad6a7ae062f77374dd9770a281f209c67291 (patch)
tree590646a95e7ce20b3731b5fb2639fd08901a5ecc /activemodel
parent29f097c53876411a6d468060de318814c9b89291 (diff)
parent11f5434a8c0226801e14f7b1dc7caca82427e28d (diff)
downloadrails-187aad6a7ae062f77374dd9770a281f209c67291.tar.gz
rails-187aad6a7ae062f77374dd9770a281f209c67291.tar.bz2
rails-187aad6a7ae062f77374dd9770a281f209c67291.zip
Merge pull request #26297 from ledermann/patch-1
Errors#add_on_blank: Fix typo in deprecation message
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 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|