Sha256: 585930795537d3ae5fe4e9cc02f0e753462e1014a58dbc5e700956f73a64fcd4

Contents?: true

Size: 447 Bytes

Versions: 11

Compression:

Stored size: 447 Bytes

Contents

##
# Person 是个人。

class Unidom::Party::Person < Unidom::Party::ApplicationRecord

  self.table_name = 'unidom_people'

  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::Person'

Version data entries

11 entries across 11 versions & 1 rubygems

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