Sha256: 2f0dfdfeb4e9a1c81ec45265c34afadbf6ebf82ea530d90a3a714573555bca37

Contents?: true

Size: 440 Bytes

Versions: 11

Compression:

Stored size: 440 Bytes

Contents

##
# Shop 是店铺。

class Unidom::Party::Shop < Unidom::Party::ApplicationRecord

  self.table_name = 'unidom_shops'

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

Version data entries

11 entries across 11 versions & 1 rubygems

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