Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove deprecation warning in rails 7 #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

existentialmutt
Copy link

Rails 7 gives the following deprecation warning when running rspec-apidoc:

Rails 7.1 will return Content-Type header without modification. If you want just the MIME type, please use `#media_type` instead.

This PR updates to the new #media_type method which has the same behavior as older versions of content_type

@stas
Copy link
Collaborator

stas commented Jan 31, 2022

@existentialmutt thanks for the PR. Do you know if this is backwards-compatible with Rails 6/5 or we need to bump the minimum dependency version as well?

@existentialmutt
Copy link
Author

Good call, @stas . Let me check on that.

@existentialmutt
Copy link
Author

Looks like this is compatible with Rails 6 but not 5.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants