Sha256: 161e1613ed6283131dffad9d300cc8334f198be351c1b69f7da30f457453eeb1
Contents?: true
Size: 812 Bytes
Versions: 20
Compression:
Stored size: 812 Bytes
Contents
module Abstractor module Methods module Models module AbstractorObjectValue def self.included(base) base.send :include, SoftDelete # Associations base.send :has_many, :abstractor_object_value_variants base.send :has_many, :abstractor_abstraction_schema_object_values base.send :has_many, :abstractor_abstraction_schemas, :through => :abstractor_abstraction_schema_object_values #Validations base.send :attr_accessible, :value, :abstractor_object_value_variants, :abstractor_abstraction_schema_object_values, :abstractor_abstraction_schemas end # Instance Methods def object_variants [value].concat(abstractor_object_value_variants.map(&:value)) end end end end end
Version data entries
20 entries across 20 versions & 1 rubygems