diff options
author | Akira Matsuda <ronnie@dio.jp> | 2016-12-22 18:48:24 +0900 |
---|---|---|
committer | Akira Matsuda <ronnie@dio.jp> | 2016-12-24 18:54:48 +0900 |
commit | bc4781583d9db237dd928b01743c6db7596a36b3 (patch) | |
tree | c9f88d46ee3c9c7b9d11a4aacb43c8b17f94f96d /actionpack/lib/action_dispatch/http/mime_negotiation.rb | |
parent | 589da3c10c3ac6139eb3f8cbcdedbcfddcedaeee (diff) | |
download | rails-bc4781583d9db237dd928b01743c6db7596a36b3.tar.gz rails-bc4781583d9db237dd928b01743c6db7596a36b3.tar.bz2 rails-bc4781583d9db237dd928b01743c6db7596a36b3.zip |
Privatize unneededly protected methods in Action Pack
Diffstat (limited to 'actionpack/lib/action_dispatch/http/mime_negotiation.rb')
-rw-r--r-- | actionpack/lib/action_dispatch/http/mime_negotiation.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/actionpack/lib/action_dispatch/http/mime_negotiation.rb b/actionpack/lib/action_dispatch/http/mime_negotiation.rb index e5f20003a3..c4fe3a5c09 100644 --- a/actionpack/lib/action_dispatch/http/mime_negotiation.rb +++ b/actionpack/lib/action_dispatch/http/mime_negotiation.rb @@ -150,20 +150,20 @@ module ActionDispatch order.include?(Mime::ALL) ? format : nil end - protected + private BROWSER_LIKE_ACCEPTS = /,\s*\*\/\*|\*\/\*\s*,/ - def valid_accept_header + def valid_accept_header # :doc: (xhr? && (accept.present? || content_mime_type)) || (accept.present? && accept !~ BROWSER_LIKE_ACCEPTS) end - def use_accept_header + def use_accept_header # :doc: !self.class.ignore_accept_header end - def format_from_path_extension + def format_from_path_extension # :doc: path = get_header("action_dispatch.original_path") || get_header("PATH_INFO") if match = path && path.match(/\.(\w+)\z/) Mime[match.captures.first] |