module ActiveModel::Serializer::Associations::ClassMethods
def associate(reflection)
- Api: - private
Returns:
-
(void)
-
Parameters:
-
reflection
(ActiveModel::Serializer::Reflection
) --
def associate(reflection) key = reflection.options[:key] || reflection.name self._reflections[key] = reflection end