nesquena / rabl

General ruby templating with json, bson, xml, plist and msgpack support
http://blog.codepath.com/2011/06/27/building-a-platform-api-on-rails/
MIT License
3.64k stars 334 forks source link

Rails 5 API mode compatibility #711

Closed droberts-sea closed 6 years ago

droberts-sea commented 6 years ago

The actual change here is to add some pieces to the Rail Tie to force Rails to load view templates even in API mode.

Most of the work in this patch is building out a set of test fixtures for Rails 5 in API mode. I ended up generalizing a lot of the components and moving them into the fixtures/ashared folder. For the tests themselves, I was able to reuse the Rails 5 ones with only a couple modifications.

Fixes #687

nesquena commented 6 years ago

Thanks, I've also added you as a collaborator. I really appreciate your help updating RABL for newer versions.