class ActiveModel::Serializer

def self.belongs_to(name, options = {}, &block)

Returns:
  • (void) -

Parameters:
  • options (Hash any>) -- for the reflection
  • name (Symbol) -- of the association
def self.belongs_to(name, options = {}, &block)
  associate(BelongsToReflection.new(name, options, block))
end