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