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

Fix Rails 4.2 regression #732

Closed tagliala closed 4 years ago

tagliala commented 4 years ago

Rails 4’s ActiveRecord_Relation responds to both :map and :each, but it is not an Enumerable

This commit partially restores the old behavior

Ref:

tagliala commented 4 years ago

Don't know why Travis is not showing up.

Travis build: https://travis-ci.org/github/nesquena/rabl/builds/678286251

nesquena commented 4 years ago

Thank you! Will release a 0.14.2 shortly as well!