active_model_serializers/lib/active_model
Jiajia Wang 7faa5e8e2e Bug fix for ArraySerializer json_key
When the resource is a zero result query,
i.e. post_comments = PostComment.where("1=0")
the json_key will become 'postcomments' rather than 'post_comments'.
Using 'underscore' instead of 'downcase' fixes the error.
2015-07-15 10:11:06 +10:00
..
serializer Bug fix for ArraySerializer json_key 2015-07-15 10:11:06 +10:00
serializer.rb Merge pull request #996 from bf4/serializer_lint 2015-07-13 19:37:39 -04:00