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

Version Path
discerner-2.0.16 lib/discerner/methods/models/parameter_value_categorization.rb
discerner-2.0.15 lib/discerner/methods/models/parameter_value_categorization.rb
discerner-2.0.14 lib/discerner/methods/models/parameter_value_categorization.rb
discerner-2.0.13 lib/discerner/methods/models/parameter_value_categorization.rb
discerner-2.0.12 lib/discerner/methods/models/parameter_value_categorization.rb
discerner-2.0.11 lib/discerner/methods/models/parameter_value_categorization.rb
discerner-2.0.10 lib/discerner/methods/models/parameter_value_categorization.rb
discerner-2.0.9 lib/discerner/methods/models/parameter_value_categorization.rb
discerner-2.0.8 lib/discerner/methods/models/parameter_value_categorization.rb
discerner-2.0.7 lib/discerner/methods/models/parameter_value_categorization.rb
discerner-2.0.6 lib/discerner/methods/models/parameter_value_categorization.rb
discerner-2.0.5 lib/discerner/methods/models/parameter_value_categorization.rb
discerner-2.0.4 lib/discerner/methods/models/parameter_value_categorization.rb
discerner-2.0.3 lib/discerner/methods/models/parameter_value_categorization.rb
discerner-2.0.2 lib/discerner/methods/models/parameter_value_categorization.rb
discerner-2.0.1 lib/discerner/methods/models/parameter_value_categorization.rb