diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2019-04-30 15:25:49 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-04-30 15:25:49 -0700 |
commit | 0c152f2eb419306578115da2c9fa10af575bede7 (patch) | |
tree | 258ce9f45fc45909b99d8c2af5898e694b4ed556 /activemodel/lib | |
parent | 84572fe26785eac8b00ab4db0ba12f23978be3ce (diff) | |
parent | 2ada222f1edbc827a1c06bdb3110d7a0ee808a24 (diff) | |
download | rails-0c152f2eb419306578115da2c9fa10af575bede7.tar.gz rails-0c152f2eb419306578115da2c9fa10af575bede7.tar.bz2 rails-0c152f2eb419306578115da2c9fa10af575bede7.zip |
Merge pull request #36150 from rails/error-any-delegation
any? should be delegated to the errors list
Diffstat (limited to 'activemodel/lib')
-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 fd87d3c9bc..d7bcfacce3 100644 --- a/activemodel/lib/active_model/errors.rb +++ b/activemodel/lib/active_model/errors.rb @@ -64,7 +64,7 @@ module ActiveModel include Enumerable extend Forwardable - def_delegators :@errors, :size, :clear, :blank?, :empty?, :uniq! + def_delegators :@errors, :size, :clear, :blank?, :empty?, :uniq!, :any? # TODO: forward all enumerable methods after `each` deprecation is removed. def_delegators :@errors, :count |