Sha256: 8b27dbcaa32222478b39c011f60bd3ccef6c7766f666b0f23ca8cb3238201a45
Contents?: true
Size: 896 Bytes
Versions: 11
Compression:
Stored size: 896 Bytes
Contents
## # Product 是产品。 class Unidom::Product::Product < Unidom::Product::ApplicationRecord self.table_name = 'unidom_products' include Unidom::Common::Concerns::ModelExtension include Unidom::Product::Concerns::AsSourceProduct include Unidom::Product::Concerns::AsTargetProduct include ProgneTapera::EnumCode validates :name, presence: true, length: { in: 2..self.columns_hash['name'].limit } validates :abbreviation, presence: true, length: { in: 1..self.columns_hash['abbreviation'].limit } validates :measurement_unit, presence: true, length: { in: 1..self.columns_hash['measurement_unit'].limit } validates :packing_norm, presence: true, length: { in: 1..self.columns_hash['packing_norm'].limit } code :formset, Unidom::Product::Formset end unless Unidom::Common::Neglection.namespace_neglected? 'Unidom::Product::Product'
Version data entries
11 entries across 11 versions & 1 rubygems