Sha256: 4ead1f2db8caa401db5b9a195a755bdaf35a6915089e5d497583decde87b2523

Contents?: true

Size: 404 Bytes

Versions: 10

Compression:

Stored size: 404 Bytes

Contents

require 'subj_models/concerns/comprising_external_id'

module SubjModels

  module MeasureUnit

    def self.included(including_class)

      including_class.class_eval do

        include SubjModels::ComprisingExternalId

        #belongs_to :attribute_value

        #has_many :nomenclature_prices

        validates :name, presence: true

      end

    end

    def to_s
      name
    end

  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
subj_models-0.3.8 lib/subj_models/measure_unit.rb
subj_models-0.3.7 lib/subj_models/measure_unit.rb
subj_models-0.3.6 lib/subj_models/measure_unit.rb
subj_models-0.3.5 lib/subj_models/measure_unit.rb
subj_models-0.3.4 lib/subj_models/measure_unit.rb
subj_models-0.3.3 lib/subj_models/measure_unit.rb
subj_models-0.3.2 lib/subj_models/measure_unit.rb
subj_models-0.3.1 lib/subj_models/measure_unit.rb
subj_models-0.3 lib/subj_models/measure_unit.rb
subj_models-0.2.5 lib/subj_models/measure_unit.rb