We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d31d741 commit d39dd04Copy full SHA for d39dd04
docs/howto/outside_controller_use.md
@@ -19,6 +19,7 @@ serializable_resource = ActiveModelSerializers::SerializableResource.new(post, o
19
# Convert your resource into json
20
model_json = serializable_resource.as_json
21
```
22
+The object that is passed to `ActiveModelSerializers::SerializableResource.new` can be a single resource or a collection.
23
24
### Looking up the Serializer for a Resource
25
0 commit comments