abstract class BaseSerializer
- BaseSerializer
- Lucky::Serializer
- Reference
- Object
Direct Known Subclasses
Defined in:
serializers/base_serializer.crClass Method Summary
-
.for_collection(collection : Enumerable, pages : Lucky::Paginator | Nil = nil, *args, **named_args)
NOTE This has been modified to allow custom collection root key.
Class Method Detail
def self.for_collection(collection : Enumerable, pages : Lucky::Paginator | Nil = nil, *args, **named_args)
#
NOTE This has been modified to allow custom collection root key. https://luckyframework.org/guides/json-and-apis/rendering-json#customizing-collection-rendering