jsonapi-rb / jsonapi-rails

Rails gem for fast jsonapi-compliant APIs.
http://jsonapi-rb.org
MIT License
321 stars 63 forks source link

Incomatible with rails 6 #117

Closed shushugah closed 2 years ago

shushugah commented 4 years ago

Thank you for the open source work you have done with this gem!

I am upgrading my rails version to 6, and am using jsonapi_resources which is dependency on this gem, which is dependent on Rails 5. Is there any plans to support Rails 6 or alternative solutions?

addywaddy commented 4 years ago

It's just a development dependency, so will work with rails 6. There are deprecation warnings caused by https://github.com/jsonapi-rb/jsonapi-rails/blob/master/lib/jsonapi/rails/railtie.rb#L55. These can be silenced in your app by setting the following in e.g. application.rb:

config.action_dispatch.return_only_media_type_on_content_type = false