From ec513098fec963b7bb30fda246cae8ed82ec718c Mon Sep 17 00:00:00 2001 From: Akira Matsuda Date: Sun, 15 Jan 2017 03:58:19 +0900 Subject: `respond_to_missing?` should fallback to `super` where method_missing could call `super` --- actionpack/lib/action_dispatch/http/mime_type.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'actionpack/lib/action_dispatch') diff --git a/actionpack/lib/action_dispatch/http/mime_type.rb b/actionpack/lib/action_dispatch/http/mime_type.rb index 6b718e3682..1a65e2d1cb 100644 --- a/actionpack/lib/action_dispatch/http/mime_type.rb +++ b/actionpack/lib/action_dispatch/http/mime_type.rb @@ -298,7 +298,7 @@ module Mime end def respond_to_missing?(method, include_private = false) - method.to_s.ends_with? "?" + (method.to_s.ends_with? "?") || super end end -- cgit v1.2.3