Sha256: 3c44e99d7c1791e9a4345aa44314d61a153bed0bb84aa9f9a40e754598324580

Contents?: true

Size: 712 Bytes

Versions: 25

Compression:

Stored size: 712 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

25 entries across 25 versions & 1 rubygems

Version Path
abstractor-4.4.7 lib/abstractor/methods/models/abstractor_abstraction_schema_relation.rb
abstractor-4.4.6 lib/abstractor/methods/models/abstractor_abstraction_schema_relation.rb
abstractor-4.4.5 lib/abstractor/methods/models/abstractor_abstraction_schema_relation.rb
abstractor-4.4.4 lib/abstractor/methods/models/abstractor_abstraction_schema_relation.rb
abstractor-4.4.3 lib/abstractor/methods/models/abstractor_abstraction_schema_relation.rb
abstractor-4.4.2 lib/abstractor/methods/models/abstractor_abstraction_schema_relation.rb
abstractor-4.4.1 lib/abstractor/methods/models/abstractor_abstraction_schema_relation.rb
abstractor-4.4.0 lib/abstractor/methods/models/abstractor_abstraction_schema_relation.rb
abstractor-4.3.3 lib/abstractor/methods/models/abstractor_abstraction_schema_relation.rb
abstractor-4.3.2 lib/abstractor/methods/models/abstractor_abstraction_schema_relation.rb
abstractor-4.3.1 lib/abstractor/methods/models/abstractor_abstraction_schema_relation.rb
abstractor-4.3.0 lib/abstractor/methods/models/abstractor_abstraction_schema_relation.rb
abstractor-4.2.3 lib/abstractor/methods/models/abstractor_abstraction_schema_relation.rb
abstractor-4.2.2 lib/abstractor/methods/models/abstractor_abstraction_schema_relation.rb
abstractor-4.2.1 lib/abstractor/methods/models/abstractor_abstraction_schema_relation.rb
abstractor-4.2.0 lib/abstractor/methods/models/abstractor_abstraction_schema_relation.rb
abstractor-4.1.5 lib/abstractor/methods/models/abstractor_abstraction_schema_relation.rb
abstractor-4.1.4 lib/abstractor/methods/models/abstractor_abstraction_schema_relation.rb
abstractor-4.1.3 lib/abstractor/methods/models/abstractor_abstraction_schema_relation.rb
abstractor-4.1.2 lib/abstractor/methods/models/abstractor_abstraction_schema_relation.rb