fast_jsonapi icon indicating copy to clipboard operation
fast_jsonapi copied to clipboard

do i need to always give serializer name or it can auto pick

Open Faisal-nfl opened this issue 4 years ago • 1 comments

using grape for apis and What I see that I have to give always provide serializer name like CompanySerializer.new(Company.all).serializable_hash

wondering if it can auto pick serialzier name depending upon resource name or object type like it used to do with active mode serializer.

and what about using Serializer in in relation like with has_many

Faisal-nfl avatar Nov 25 '19 12:11 Faisal-nfl

@Faisal-nfl I think this is mostly Grape related. You can override the formatter to do so. The gem grape_fast_jsonapi does just that. Feel free to have a look at it and give it a try

EmCousin avatar Dec 17 '19 18:12 EmCousin