diff options
author | Akira Matsuda <ronnie@dio.jp> | 2017-01-15 02:38:21 +0900 |
---|---|---|
committer | Akira Matsuda <ronnie@dio.jp> | 2017-01-15 02:44:03 +0900 |
commit | d5fbb04fab6f598b2ad5a4763672504fa81466af (patch) | |
tree | 804cde73dfec98ebb5aa220966ddc531a0dc5ffd /activesupport/lib/active_support/array_inquirer.rb | |
parent | c0c331bfc8ba66efa310c1c065e3b6349d97d9b2 (diff) | |
download | rails-d5fbb04fab6f598b2ad5a4763672504fa81466af.tar.gz rails-d5fbb04fab6f598b2ad5a4763672504fa81466af.tar.bz2 rails-d5fbb04fab6f598b2ad5a4763672504fa81466af.zip |
AS::ArrayInquirer#respond_to_missing? should fallback to super
in case Array or any other ancestor class' respond_to_missing? was defined.
Diffstat (limited to 'activesupport/lib/active_support/array_inquirer.rb')
-rw-r--r-- | activesupport/lib/active_support/array_inquirer.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activesupport/lib/active_support/array_inquirer.rb b/activesupport/lib/active_support/array_inquirer.rb index 85122e39b2..d364996e0b 100644 --- a/activesupport/lib/active_support/array_inquirer.rb +++ b/activesupport/lib/active_support/array_inquirer.rb @@ -32,7 +32,7 @@ module ActiveSupport private def respond_to_missing?(name, include_private = false) - name[-1] == "?" + (name[-1] == "?") || super end def method_missing(name, *args) |