method

content_type

Importance_0

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v7.0.0) is shown here.

These similar methods exist in v7.1.3.2:

content_type() public

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 36
      def content_type
        if self.class.return_only_media_type_on_content_type
          ActiveSupport::Deprecation.warn(
            "Rails 7.1 will return Content-Type header without modification."              " If you want just the MIME type, please use `#media_type` instead."
          )

          content_mime_type&.to_s
        else
          super
        end
      end
Register or log in to add new notes.