Sha256: 986841994ce4ef4ef7b41d3eab48ced60c9803f7e6bc8c739f4d1630d53d742f

Contents?: true

Size: 404 Bytes

Versions: 4

Compression:

Stored size: 404 Bytes

Contents

##
# Dictionary Item 是字典项。

class Unidom::Dictionary::DictionaryItem < Unidom::Dictionary::ApplicationRecord

  self.table_name = 'unidom_dictionary_items'

  include Unidom::Common::Concerns::ModelExtension

  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

4 entries across 4 versions & 1 rubygems

Version Path
unidom-dictionary-1.0 app/models/unidom/dictionary/dictionary_item.rb
unidom-dictionary-0.3.3 app/models/unidom/dictionary/dictionary_item.rb
unidom-dictionary-0.3.2 app/models/unidom/dictionary/dictionary_item.rb
unidom-dictionary-0.3.1 app/models/unidom/dictionary/dictionary_item.rb