diff options
author | Akira Matsuda <ronnie@dio.jp> | 2017-01-15 03:58:19 +0900 |
---|---|---|
committer | Akira Matsuda <ronnie@dio.jp> | 2017-01-15 03:58:19 +0900 |
commit | ec513098fec963b7bb30fda246cae8ed82ec718c (patch) | |
tree | d7ae118f9df6a10ee49f43f0e8c7f95e48c4c6af /actionpack | |
parent | b99014bf44252e46e4e11e1df7cbded89e3e5465 (diff) | |
download | rails-ec513098fec963b7bb30fda246cae8ed82ec718c.tar.gz rails-ec513098fec963b7bb30fda246cae8ed82ec718c.tar.bz2 rails-ec513098fec963b7bb30fda246cae8ed82ec718c.zip |
`respond_to_missing?` should fallback to `super` where method_missing could call `super`
Diffstat (limited to 'actionpack')
-rw-r--r-- | actionpack/lib/action_dispatch/http/mime_type.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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 |