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

Version Path
abstractor-2.1.2 lib/abstractor/methods/models/abstractor_abstraction_schema_relation.rb
abstractor-2.1.01 lib/abstractor/methods/models/abstractor_abstraction_schema_relation.rb
abstractor-2.1.0 lib/abstractor/methods/models/abstractor_abstraction_schema_relation.rb
abstractor-2.0.1 lib/abstractor/methods/models/abstractor_abstraction_schema_relation.rb
abstractor-2.0.0 lib/abstractor/methods/models/abstractor_abstraction_schema_relation.rb
abstractor-1.0.23 lib/abstractor/methods/models/abstractor_abstraction_schema_relation.rb
abstractor-1.0.22 lib/abstractor/methods/models/abstractor_abstraction_schema_relation.rb
abstractor-1.0.20 lib/abstractor/methods/models/abstractor_abstraction_schema_relation.rb
abstractor-1.0.19 lib/abstractor/methods/models/abstractor_abstraction_schema_relation.rb
abstractor-1.0.18 lib/abstractor/methods/models/abstractor_abstraction_schema_relation.rb
abstractor-1.0.17 lib/abstractor/methods/models/abstractor_abstraction_schema_relation.rb
abstractor-1.0.16 lib/abstractor/methods/models/abstractor_abstraction_schema_relation.rb
abstractor-1.0.15 lib/abstractor/methods/models/abstractor_abstraction_schema_relation.rb
abstractor-1.0.14 lib/abstractor/methods/models/abstractor_abstraction_schema_relation.rb
abstractor-1.0.13 lib/abstractor/methods/models/abstractor_abstraction_schema_relation.rb
abstractor-1.0.12 lib/abstractor/methods/models/abstractor_abstraction_schema_relation.rb
abstractor-1.0.11 lib/abstractor/methods/models/abstractor_abstraction_schema_relation.rb
abstractor-1.0.10 lib/abstractor/methods/models/abstractor_abstraction_schema_relation.rb
abstractor-1.0.9 lib/abstractor/methods/models/abstractor_abstraction_schema_relation.rb
abstractor-1.0.8 lib/abstractor/methods/models/abstractor_abstraction_schema_relation.rb