Sha256: 62452766158f0043004e3945e6e22b9949123a6333a641b7f425a93a65547eaf
Contents?: true
Size: 498 Bytes
Versions: 2
Compression:
Stored size: 498 Bytes
Contents
## # Dictionary Item 是字典项。 class Unidom::Dictionary::DictionaryItem < Unidom::Dictionary::ApplicationRecord self.table_name = 'unidom_dictionary_items' include Unidom::Common::Concerns::ModelExtension validates :code, allow_blank: true, length: { in: 1..self.columns_hash['code'].limit } validates :value, presence: true, length: { in: 2..self.columns_hash['value'].limit } end unless Unidom::Common::Neglection.namespace_neglected? 'Unidom::Dictionary::DictionaryItem'
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
unidom-dictionary-0.3 | app/models/unidom/dictionary/dictionary_item.rb |
unidom-dictionary-0.2.2 | app/models/unidom/dictionary/dictionary_item.rb |