Sha256: 2b81905ea526c6972b720f3ca22b7e38a60e2890f681bf945ae07cde9a186f4f
Contents?: true
Size: 425 Bytes
Versions: 34
Compression:
Stored size: 425 Bytes
Contents
module Kithe # join table for n-to-m self-referential "contains" relation # between models, mostly intended for (Collection <-> Work) class ModelContains < ActiveRecord::Base belongs_to :container, foreign_key: "container_id", class_name: "Kithe::Model", inverse_of: :contains_contains belongs_to :containee, foreign_key: "containee_id", class_name: "Kithe::Model", inverse_of: :contains_contained_by end end
Version data entries
34 entries across 34 versions & 1 rubygems