Sha256: 8ef5d87f8fb0aa4713870ea69df4856359fae831a3fe3cc3d143cc75135e84b2

Contents?: true

Size: 453 Bytes

Versions: 11

Compression:

Stored size: 453 Bytes

Contents

##
# Company 是公司。

class Unidom::Party::Company < Unidom::Party::ApplicationRecord

  self.table_name = 'unidom_companies'

  include Unidom::Common::Concerns::ModelExtension
  include Unidom::Party::Concerns::AsSourceParty
  include Unidom::Party::Concerns::AsTargetParty

  validates :name, presence: true, length: { in: 2..self.columns_hash['name'].limit }

end unless Unidom::Common::Neglection.namespace_neglected? 'Unidom::Party::Company'

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
unidom-party-2.0 app/models/unidom/party/company.rb
unidom-party-1.9.8 app/models/unidom/party/company.rb
unidom-party-1.9.7 app/models/unidom/party/company.rb
unidom-party-1.9.6 app/models/unidom/party/company.rb
unidom-party-1.9.5 app/models/unidom/party/company.rb
unidom-party-1.9.4 app/models/unidom/party/company.rb
unidom-party-1.9.3 app/models/unidom/party/company.rb
unidom-party-1.9.2 app/models/unidom/party/company.rb
unidom-party-1.9.1 app/models/unidom/party/company.rb
unidom-party-1.9 app/models/unidom/party/company.rb
unidom-party-1.8.5 app/models/unidom/party/company.rb