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