diff options
author | Georg Ledermann <mail@georg-ledermann.de> | 2016-08-27 08:42:45 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-08-27 08:42:45 +0200 |
commit | 11f5434a8c0226801e14f7b1dc7caca82427e28d (patch) | |
tree | 590646a95e7ce20b3731b5fb2639fd08901a5ecc /activemodel | |
parent | 29f097c53876411a6d468060de318814c9b89291 (diff) | |
download | rails-11f5434a8c0226801e14f7b1dc7caca82427e28d.tar.gz rails-11f5434a8c0226801e14f7b1dc7caca82427e28d.tar.bz2 rails-11f5434a8c0226801e14f7b1dc7caca82427e28d.zip |
Fix typo in deprecation message
This fixes a copy-and-paste-issue slipped in by #18996
Diffstat (limited to 'activemodel')
-rw-r--r-- | activemodel/lib/active_model/errors.rb | 2 |
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| |