mirror of
https://github.com/ditkrg/active_model_serializers.git
synced 2026-01-22 22:06:50 +00:00
ArraySerializer can serialize arrays of Hash, ActiveModel::Serializer, or any PORO that responds to :as_json Each item in the array should not include its type as a root element, since normal arrays do not do this. If you want "typed" collections, don't use an Array. |
||
|---|---|---|
| .. | ||
| action_controller | ||
| active_model | ||
| generators | ||
| active_model_serializers.rb | ||