module ActiveModel::Serializer::Associations::ClassMethods

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

Returns:
  • (void) -

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