Skip to content

Commit 3921f24

Browse files
authored
Merge pull request rails#41251 from kamipo/fix_deprecation_message
Fix deprecation message s/Rails 6.1 will return/Rails 7.0 will return/
2 parents c38db72 + 388f602 commit 3921f24

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

actionpack/lib/action_dispatch/http/mime_negotiation.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,11 @@ def content_mime_type
3636
def content_type
3737
if self.class.return_only_media_type_on_content_type
3838
ActiveSupport::Deprecation.warn(
39-
"Rails 6.1 will return Content-Type header without modification." \
39+
"Rails 7.0 will return Content-Type header without modification." \
4040
" If you want just the MIME type, please use `#media_type` instead."
4141
)
4242

43-
content_mime_type && content_mime_type.to_s
43+
content_mime_type&.to_s
4444
else
4545
super
4646
end

0 commit comments

Comments
 (0)