module Sequel::Model::Associations

  1. lib/sequel/model/associations.rb
Parent: Model

Associations are used in order to specify relationships between model classes that reflect relations between tables in the database using foreign keys.

Methods

Public Class

  1. apply

Constants

ASSOCIATION_TYPES = {}  

Map of association type symbols to association reflection classes.

Public Class methods

apply (model)

Set an empty association reflection hash in the model

[show source]
# File lib/sequel/model/associations.rb, line 10
def self.apply(model)
  model.instance_variable_set(:@association_reflections, {})
  model.instance_variable_set(:@autoreloading_associations, {})
end