# File lib/dm-core/associations.rb, line 147 def belongs_to(name, options={}) @_valid_relations = false relationship = ManyToOne.setup(name, self, options) # Please leave this in - I will release contextual serialization soon # which requires this -- guyvdb # TODO convert this to a hook in the plugin once hooks work on class # methods self.init_belongs_relationship_for_serialization(relationship) if self.respond_to?(:init_belongs_relationship_for_serialization) relationship end