Sha256: ff80b4e09785db858369a394ab194c0072efecee7bb7739d3a1862b4b9f6c667
Contents?: true
Size: 554 Bytes
Versions: 16
Compression:
Stored size: 554 Bytes
Contents
module Discerner module Methods module Models module ParameterValueCategorization def self.included(base) base.send :include, SoftDelete # Associations base.send :belongs_to, :parameter_value_category, inverse_of: :parameter_value_categorizations base.send :belongs_to, :parameter_value, inverse_of: :parameter_value_categorization # Validations base.send :validates_presence_of, :parameter_value_category, :parameter_value end end end end end
Version data entries
16 entries across 16 versions & 1 rubygems