jsonapi-rb / jsonapi-rails

Rails gem for fast jsonapi-compliant APIs.
http://jsonapi-rb.org
MIT License
321 stars 63 forks source link

Consider having deserializable_resource take explicit class via named parameter. #7

Closed beauby closed 7 years ago

beauby commented 7 years ago

I.e. deserializable_resource :post, class: DeserializablePost instead of deserializable_resource :post, DeserializablePost.

Rationale: consistency with the render call that accepts a class named parameter.

beauby commented 7 years ago

Done.