unidom-party 0.4.1 → 0.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: cab985c4c97e83693af21453061506e3ff7459e5
4
- data.tar.gz: 3e5817f6ffdf2677d34b88c4f3c3cb02010b9fe2
3
+ metadata.gz: 97b432b57919bab9692e6d5951d89fac33f088a3
4
+ data.tar.gz: 3b71730e437d33d32f8172db2b8219fbb518091d
5
5
  SHA512:
6
- metadata.gz: 410abf2f16f47eab8b8bc9c80f9b4749abdde00cb759a4378e20d303ddadefb0047d06ab9a9372383e18e31e9511a555ddbc51359557ddd8a14fce93ab3654df
7
- data.tar.gz: 9e64333672158449dd5089602de4952101b2ccacdc6cbeae93a1e57e3f0e5a5894a323b31c52d0420c3a0639a7d2a2b6fd788364c9978a41f76a748b5123a116
6
+ metadata.gz: c6febf5cda3542fc747dbfd622b25740f9e19f7f5637540f1b72658e0f269ef3eff84b6b54894ddc7933ad205dd91564604c0e89f41c5eb523a04ab7de7c2fe1
7
+ data.tar.gz: 2b48dcf14617991d81368cf5a0a7276b4fcd556f228d4270d1d519d846db9b85694a8671a679e119396d43f77b5a4834b8373613504f8ebb649e98cc6d0b0349
@@ -2,9 +2,10 @@
2
2
 
3
3
  class Unidom::Party::PartyRelation < ActiveRecord::Base
4
4
 
5
- self.table_name = 'unidom_people'
5
+ self.table_name = 'unidom_party_relations'
6
6
 
7
- validates :name, presence: true, length: { in: 2..self.columns_hash['name'].limit }
7
+ validates :grade, presence: true, numericality: { integer_only: true }
8
+ validates :priority, presence: true, numericality: { integer_only: true }
8
9
 
9
10
  belongs_to :source_party, polymorphic: true
10
11
  belongs_to :target_party, polymorphic: true
@@ -9,31 +9,6 @@ class Unidom::Party::Person < ActiveRecord::Base
9
9
  has_many :source_party_relations, class_name: 'Unidom::Party::PartyRelation', as: :target_party
10
10
  has_many :target_party_relations, class_name: 'Unidom::Party::PartyRelation', as: :source_party
11
11
 
12
- #has_many :source_party_linkings, class_name: 'Party::PartyLinking', as: :source_party
13
- #has_many :linked_shops_as_source, through: :source_party_linkings, source: :target_party, source_type: 'Party::Shop'
14
- #has_many :linked_people_as_source, through: :source_party_linkings, source: :target_party, source_type: 'Party::Person'
15
-
16
- #has_many :target_party_linkings, class_name: 'Party::PartyLinking', as: :target_party
17
- #has_many :linked_shops_as_target, through: :source_party_linkings, source: :source_party, source_type: 'Party::Shop'
18
- #has_many :linked_people_as_target, through: :source_party_linkings, source: :source_party, source_type: 'Party::Person'
19
-
20
- #has_many :allocatings, class_name: 'Property::Allocating', as: :allocatee
21
- #has_many :allocated_tables, through: :allocatings, source: :allocated, source_type: 'Property::Table'
22
-
23
- #has_many :receptions, class_name: 'Visitor::Reception', as: :party
24
- #has_many :recepted_users, through: :receptions, source: :visitor, source_type: 'Visitor::User'
25
-
26
- #has_many :contact_subscriptions, class_name: 'Contact::ContactSubscription', as: :subscriber
27
- #has_many :china_mobile_phone_numbers, through: :contact_subscriptions, source: :contact, source_type: 'Contact::ChinaMobilePhoneNumber'
28
-
29
- #has_many :target_linkings, class_name: 'Party::PartyLinking', as: :source_party
30
- #has_many :target_people, through: :target_linkings, source: :target_party, source_type: 'Party::Person'
31
- #has_many :target_shops, through: :target_linkings, source: :target_party, source_type: 'Party::Shop'
32
-
33
- #has_many :source_linkings, class_name: 'Party::PartyLinking', as: :target_party
34
- #has_many :source_people, through: :source_linkings, source: :source_party, source_type: 'Party::Person'
35
- #has_many :source_shops, through: :source_linkings, source: :source_party, source_type: 'Party::Shop'
36
-
37
12
  include Unidom::Common::Concerns::ModelExtension
38
13
 
39
14
  end
@@ -1,5 +1,5 @@
1
1
  module Unidom
2
2
  module Party
3
- VERSION = '0.4.1'.freeze
3
+ VERSION = '0.5'.freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: unidom-party
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.1
4
+ version: '0.5'
5
5
  platform: ruby
6
6
  authors:
7
7
  - Topbit Du
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-03-18 00:00:00.000000000 Z
11
+ date: 2016-03-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: unidom-common