method

format_from_path_extension

Importance_0
v6.1.7.7 - Show latest stable - 0 notes - Class: ActionDispatch::Http::MimeNegotiation
format_from_path_extension() private

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File actionpack/lib/action_dispatch/http/mime_negotiation.rb, line 180
        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]
          end
        end
Register or log in to add new notes.