Sha256: 1515ae6c7e9fa8112dc14bf4b5513a2aaaea56c21e2abb60222a6b93f42472ca
Contents?: true
Size: 710 Bytes
Versions: 20
Compression:
Stored size: 710 Bytes
Contents
module Abstractor module Methods module Models module AbstractorAbstractionSchemaRelation def self.included(base) base.send :include, SoftDelete # Associations base.send :belongs_to, :abstractor_relation_type base.send :belongs_to, :object, :class_name => "Abstractor::AbstractorAbstractionSchema", :foreign_key => "object_id" base.send :belongs_to, :subject, :class_name => "Abstractor::AbstractorAbstractionSchema", :foreign_key => "subject_id" base.send :attr_accessible, :abstractor_relation_type, :abstractor_relation_type_id, :object, :object_id, :subject, :subject_id, :deleted_at end end end end end
Version data entries
20 entries across 20 versions & 1 rubygems