module Sequel::Model::Associations
Associations are used in order to specify relationships between model classes that reflect relations between tables in the database using foreign keys.
Constants
- ASSOCIATION_TYPES
Map of association type symbols to association reflection classes.
Public Class Methods
apply(model)
click to toggle source
Set an empty association reflection hash in the model
# File lib/sequel/model/associations.rb, line 10 def self.apply(model) model.instance_eval do @association_reflections = {} @autoreloading_associations = {} @cache_associations = true end end