Methods

Class/Module Index [+]

Quicksearch

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_variable_set(:@association_reflections, {})
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.