Sha256: 2909052eeaa7573254ad7a87c00b7c7cea9f8c95920c0ce0ca3d367a69d283cf

Contents?: true

Size: 351 Bytes

Versions: 7

Compression:

Stored size: 351 Bytes

Contents

# Person 是个人。

class Unidom::Party::Person < ActiveRecord::Base

  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

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
unidom-party-1.7 app/models/unidom/party/person.rb
unidom-party-1.6 app/models/unidom/party/person.rb
unidom-party-1.5 app/models/unidom/party/person.rb
unidom-party-1.4 app/models/unidom/party/person.rb
unidom-party-1.3 app/models/unidom/party/person.rb
unidom-party-1.2 app/models/unidom/party/person.rb
unidom-party-1.1 app/models/unidom/party/person.rb