class ActiveModel::Serializer
def has_many(*attrs)
with the association name does not exist, the association name is
as a method which should return an array when invoked. If a method
The serializer object should implement the association name
Defines an association in the object should be rendered.
def has_many(*attrs) associate(Associations::HasMany, attrs) end