class ActiveModel::Serializer

def self.has_many(name, options = {}, &block) # rubocop:disable Style/PredicateName

Returns:
  • (void) -

Parameters:
  • options (Hash any>) -- for the reflection
  • name (Symbol) -- of the association
def self.has_many(name, options = {}, &block) # rubocop:disable Style/PredicateName
  associate(HasManyReflection.new(name, options, block))
end