class ActiveModel::Serializer
def self.belongs_to(name, options = {}, &block)
-
(void)
-
Parameters:
-
options
(Hash
) -- for the reflectionany> -
name
(Symbol
) -- of the association
def self.belongs_to(name, options = {}, &block) associate(BelongsToReflection.new(name, options, block)) end