Sha256: e070a85c2ccc2e8fcdf4efd68c0c379a65331fb29757cb1c64f1c2299aff301e

Contents?: true

Size: 632 Bytes

Versions: 9

Compression:

Stored size: 632 Bytes

Contents

class Association < ApplicationRecord

####################################################################

  # Central "Association" Model -- Stores every association between nodes
  ##########################################

    belongs_to :associatiable, 	polymorphic: :true
    belongs_to :associated, 	  polymorphic: true

    # Nested attributes
    #classes = Meta::Property.all
    #if classes.any?
  #    classes.each do |klass| # => Class reserved
  #      accepts_nested_attributes_for klass.ref.to_sym, allow_destroy: true
  #    end
  #  end

####################################################################

end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
fl-0.3.9 app/models/association.rb
fl-0.3.8 app/models/association.rb
fl-0.3.6 app/models/association.rb
fl-0.3.5 app/models/association.rb
fl-0.3.4 app/models/association.rb
fl-0.3.3 app/models/association.rb
fl-0.3.2 app/models/association.rb
fl-0.3.1 app/models/association.rb
fl-0.3.0 app/models/association.rb