Skip to content

Latest commit

 

History

History
19 lines (14 loc) · 694 Bytes

README.md

File metadata and controls

19 lines (14 loc) · 694 Bytes

README

Barebone Rails install with Apartment and Jsonapi-resources gems.

This repos is meant for testing against bug cerebris/jsonapi-resources#1316

A Monkey patch solution available at: config/initializers/jsonapi_resources.rb (uncomment and restart app to use).

How to test

  1. Pull repo
  2. bundle install
  3. rails db:setup
  4. rails s
  5. Browse http://demo.lvh.me:3000/api/posts (tenant-specific data)
  • Should respond successfully
  1. Browse http://demo.lvh.me:3000/api/account (shared model - singleton resource)
  • Should respond sucessfully (show Account info) - with patch or proper solution
  • Break with SQL error - without patch/solution