Skip to content
#

resource-serializer

Here are 4 public repositories matching this topic...

LeKristapino
LeKristapino commented Jul 21, 2019

Before upgrading from 0.10.5 to 0.10.10 this line worked without any errors

render json: {first_key: "some string",  second_key: "another string" } , serializer: SomeCustomSerializer

Now it produces an error undefined method 'model_name' for Hash:Class.

Adding a root parameter (for example ..., serializer: SomeCustomSerializer, root: '' fixes the issue.

BUT from the doc

Improve this page

Add a description, image, and links to the resource-serializer topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the resource-serializer topic, visit your repo's landing page and select "manage topics."

Learn more

You can’t perform that action at this time.