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