Sha256: b71a256d6e359deb444d71925a27b727e39dffa0dd32e725ca3c5f165d73bef4

Contents?: true

Size: 309 Bytes

Versions: 1

Compression:

Stored size: 309 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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
unidom-dictionary-0.1 app/models/unidom/dictionary/dictionary_item.rb