lib/rubocop/cop/rails/response_parsed_body.rb in rubocop-rails-2.18.0 vs lib/rubocop/cop/rails/response_parsed_body.rb in rubocop-rails-2.19.0
- old
+ new
@@ -4,12 +4,12 @@
module Cop
module Rails
# Prefer `response.parsed_body` to `JSON.parse(response.body)`.
#
# @safety
- # This cop's autocorrection is unsafe because Content-Type may not be `application/json`. For example, the
- # proprietary Content-Type provided by corporate entities such as `application/vnd.github+json` is not
- # supported at `response.parsed_body` by default, so you still have to use `JSON.parse(response.body)` there.
+ # This cop is unsafe because Content-Type may not be `application/json`. For example, the proprietary
+ # Content-Type provided by corporate entities such as `application/vnd.github+json` is not supported at
+ # `response.parsed_body` by default, so you still have to use `JSON.parse(response.body)` there.
#
# @example
# # bad
# JSON.parse(response.body)
#