Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Shush Mime::JSON deprecation. Switch to backward-compatible Mime[:json]
- Loading branch information
5ba4e4a
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jeremy : Suggest that the following message be changed:
to
based on the above commit 5ba4e4a
5ba4e4a
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jasnow Definitely. We haven't changed this in Rails yet, though.
5ba4e4a
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jeremy - note the change from
Mime::Type[:JSON]
toMime::[json]
in message.5ba4e4a
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Right, noted. We're saying the same thing 😁 That's exactly the change we'll be making in Rails, but we haven't made it yet.
5ba4e4a
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jeremy - FYI: When I cut and pasted the string (Mime::Type[:JSON]) in the current message, then it did not work in my PR.
5ba4e4a
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jasnow Yeah, that only works in latest Rails, so it won't work with jbuilder's own tests. The feature-detection you implemented is what every lib that supports multiple versions of Rails would've had to do—no good. Hence the switch to an alternative that's already backward compatible.
5ba4e4a
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jeremy - okay