aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib
diff options
context:
space:
mode:
authorAkira Matsuda <ronnie@dio.jp>2017-01-15 03:36:27 +0900
committerAkira Matsuda <ronnie@dio.jp>2017-01-15 03:38:06 +0900
commitb99014bf44252e46e4e11e1df7cbded89e3e5465 (patch)
tree4efdce16d7da1ac881623e05a2f0c1e0e9637485 /activesupport/lib
parentb89316fed36096f28f998ec6490151d135695612 (diff)
downloadrails-b99014bf44252e46e4e11e1df7cbded89e3e5465.tar.gz
rails-b99014bf44252e46e4e11e1df7cbded89e3e5465.tar.bz2
rails-b99014bf44252e46e4e11e1df7cbded89e3e5465.zip
AS::StringInquirer#respond_to_missing? should fallback to super
in case String or any other ancestor class' respond_to_missing? was defined.
Diffstat (limited to 'activesupport/lib')
-rw-r--r--activesupport/lib/active_support/string_inquirer.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activesupport/lib/active_support/string_inquirer.rb b/activesupport/lib/active_support/string_inquirer.rb
index 09e1cbb28d..90eac89c9e 100644
--- a/activesupport/lib/active_support/string_inquirer.rb
+++ b/activesupport/lib/active_support/string_inquirer.rb
@@ -18,7 +18,7 @@ module ActiveSupport
private
def respond_to_missing?(method_name, include_private = false)
- method_name[-1] == "?"
+ (method_name[-1] == "?") || super
end
def method_missing(method_name, *arguments)